So 2 days ago I got my calculator for Christmas, am cool now .
I've been trying to get a simple game loop to work that ends when you press the ENTER button.
Here's the code (pretty much the whole thing except for some util functions):
Code:
It seems to just get stuck in an infinite loop, and I end up having to reset it to try again.
What am I doing wrong when comparing it with 105 (the ENTER button code)?
I've been trying to get a simple game loop to work that ends when you press the ENTER button.
Here's the code (pretty much the whole thing except for some util functions):
Code:
SJQ_gameloop:
ld HL, vRam
ld DE, %1110011111100000
ld BC, 320 * 240
call SJQ_MemSet16
call _GetCSC
cp A, 105
jp NZ, SJQ_gameloop
SJQ_gameend:
call _homeup
call _ClrScrnFull
ret
It seems to just get stuck in an infinite loop, and I end up having to reset it to try again.
What am I doing wrong when comparing it with 105 (the ENTER button code)?