Re: A86: Learning ASM by A Simple Method


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

Re: A86: Learning ASM by A Simple Method




I'd suggest using _getkey over _getky, as that little loop will drain your
batteries if left on.  Or, add a halt:

 call _clrScrn
 call _runindicoff
KeyLoop:
 call _getkey        ; wait in lower power mode for key press
 cp kEnter
 ret z
 jr KeyLoop

> how about this?
>
> call _clrScrn
> call _rundindicoff
> getkey:
> call GET_KEY
> cp K_ENTER
> jr nz,getkey
> ret




References: