Re: A83: delay routines...HELP!
[Prev][Next][Index][Thread]
Re: A83: delay routines...HELP!
DEC is decrease, so it decreases BC
OR C is comparing register a to c bit per bit and if one bit of either
one is 1, it returns 1.
So if you had
01001010 -> This a (same value as b becuz of ld a, b)
10000000 -> This is our bit masker c
--------
11001010 -> This is OR C
POP BC pulls the top value off the stack and plugs it into BC
Jimmy
> delayLoop:
> DEC BC <<<What is DEC
> LD A, B
> OR C <<what is OR C
> JR NZ, delayLoop
> POP BC <<<what is POP
> POP AF
> ret
==
»»»»»»»»»»»»»»»»»»»»«««««««««««««««««««««
» 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