[A83] Re: Stuff
[Prev][Next][Index][Thread]
[A83] Re: Stuff
No I did not notice that it was updated.
The $ represents the current byte. This can be useful in many situations to
avoid a call for one command. For instance, you want to inc a variable until
it is 5, and then reset it to 0. It can be done like so:
cp 5
jr nz,$+4
ld a,-1
inc a
if it is <5 it will skip ld a,-1. remember that it starts at the beginning
of the command and jr is two bytes. since ld a,-1 is two bytes, you must
skip 4. more questions? email again.
-joel seligstein
joel@basm.org
www.basm.org
Follow-Ups: