Re: A86: Looping


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

Re: A86: Looping



That was extremely annoying and I apologize for the incomplete mail (my
stupid mail writing thingy won't let me tab, so when I tabbed, it switched to
"send" and I hit space, so it sent an incomplete mail...)

Anyway, In between the 
 call _puts 
and the 
 ret 
should be 
 djnz Loop

Also, about waiting for a keypress, _getkey returns the # of the key pressed
(0 in none) in A (and updates the zero flag), so to wait for a keypress, just
do this:

KeyLoop:
 call _getkey
 jr z,KeyLoop

Also, the scancodes are different.  Check ti86asm to see exactly what they
are...

~Steve