Re: A83: Using APD in asm on 83p


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

Re: A83: Using APD in asm on 83p



Well you don't need to use the APD timer directly, but you can use its
characteristic of being based on the timer interrupts to mimic it:

ld b,120
delay:
halt
djnz delay

Since there are about 120 (iirc) interrupts per second, halt will wait until
each interrupt is triggered and will loop 120 times.  If that isn't long
enough, then increase the starting b value until the delay is about 1 second.
 It's never going to be _exactly_ 1 second, though, since the timer varies
based on temperature, battery power, and other factors.


In a message dated 1/7/2001 12:24:47 PM Eastern Standard Time,
playnogamz@nls.net writes:



Can someone tell more how to use the APD timer to make a program perform an
action after 1 second?




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