Re: A83: Question about compares.
[Prev][Next][Index][Thread]
Re: A83: Question about compares.
Nope you are wrong. 'Cp' isn't like the basic 'if' statement. The
next line will be read anyways, you will have to jump to different
labels are call them.
Any of these ways will work I believe...
ld a, (value)
cp 1
jr z, label1
cp 12
jp z, label2
cp 144
call z, label3
; they also work with nz, c, and nc
label1:
(z80 stuff)
label2:
(z80 stuff)
label3:
(z80 stuff)
Jimmy
==
»»»»»»»»»»»»»»»»»»»»«««««««««««««««««««««
» TI-Magic «
» http://www.angelfire.com/tx/timagic/ «
» TIMagic@Yahoo.com «
»»»»»»»»»»»»»»»»»»»»«««««««««««««««««««««
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com