A85: Timer


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

A85: Timer



I am trying to make my program pause and wait for a key for about 10 seconds
and then move on if that key wasn't pressed, but I am not exactly sure about
what to do.
Please help me out.

ld     bc,1000
Loop:
call   GET_KEY
cp     K_EXIT
jr       z,Pressed
djnz  Loop
Pressed:
call CLEARLCD
...

That should work right? But what number do I need to put in bc to equal 10
seconds?

Thanks,
Mikel Blanchard

<A HREF="http://members.aol.com/CashOnly/The_Layer.html">http://members.aol.co
m/CashOnly/The_Layer.html</A>


Follow-Ups: