Use the bit instruction, for example bit 6,(iy+4) jr nz,flagNotSet ; the flag is set jr flagWasSet flagNotSet: ; the flag isn't set flagWasSet: Thus spoke Man in the Moon <cph@softhome.net>: > How can I check if a flag is set or reset? For example, if set, do this, if reset, do something else. > > From: Chris (Man in the Moon) > at ch@calc.org -- Joe Wingbermuehle http://joewing.calc.org