Re: A86: Learning ASM by A Simple Method
[Prev][Next][Index][Thread]
Re: A86: Learning ASM by A Simple Method
you should also concetrate on more useful ROM call's like _getky or _getkey,
and such, I also suggest learning a little more asm before writing a tutorial...
here is quick program that will wait for enter to be pressed then exit:
init:
call _clrLCD ;clears lcd
call _runindicoff ;turns run indicator off
Start:
call _getky ;get key ROM call
cp K_ENTER ;check for zero flag set on ENTER
jr z,Exit ;if it is jump to Exit
jr Start ;if not loop back to start
Exit:
call _runindicon ;turns run indicator back on
ret ;end of program
Jeffrey Malone
<ieatlint@home.com>
http://zapo.calc.org/
References: