LZ: flags
[Prev][Next][Index][Thread]
LZ: flags
Is there a way to work with bits using variables. For instance, instead of
doing this:
set 0, a
set 1, a
set 2, a
...etc, could I do this:
ld b, 0
Loop: set b, a
inc b
(check to see if b is > 2)
jr Loop
If there is a way or any other way to do this, could anyone help me. (It
should also apply to set, res, and bit). I guess the best way would be to
set a bit, then rotate it, but this creates problems of its own and I am not
as familiar with rotating bits as I am setting or checking them.
David Kristensen at the University of Missouri - Kansas City
dkristensen@cctr.umkc.edu
The Mind conquers All...
Follow-Ups: