RE: A83: Delay Routine Need


[Prev][Next][Index][Thread]

RE: A83: Delay Routine Need




If you use this delay routine, make sure to do a EI before calling...
otherwise your calc can hang...

  ei
  ld b,10
delay:
  halt
  djnz delay

-----Oorspronkelijk bericht-----
Van: ComAsYuAre@aol.com [mailto:ComAsYuAre@aol.com]
Verzonden: zondag 17 september 2000 4:52
Aan: assembly-83@lists.ticalc.org
Onderwerp: Re: A83: Delay Routine Need



In a message dated 9/16/00 10:49:55 PM Eastern Daylight Time, 
paxl@caramail.com writes:

> I'm loocking for a routine to control the speed of a sprite.
>  

Sprites are graphics and have no amount of "speed" associated with them 
unless you refer to a particular velocity for a character represented by a 
sprite...

If you want a delay routine, you can do something like this:

  ld b,10
delay:
  halt
  djnz delay


And the 10 can be varied depending on how long you want the delay to be.  If

it's a really short delay, use nop instead of halt.


----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org