Re: A86: simple code I can't figure out


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

Re: A86: simple code I can't figure out




Okay...thanks everyone. I learned a lot. There's still a problem that I have 
with the _getkey equate though. Some tutorial somewhere (Dux's I think) told 
me that I could type something like this, and it would work:
loop:
 call _getkey
 cp K_EXIT
 jr z,exit
 cp K_ENTER
 jr z,begin
 jr loop

...According to what I know (or think I know) about ASM, this would work in 
order to halt the program until it gets some input. I get it to loop alright, 
but it won't accept any input. Why?