Routines
| Prev: AEF1 | Up: Map | Next: AF4E |
AF38: Z if the ten bytes at IY + A are all zero
|
Used by the routine at AEF1.
|
||||||||||||||||
| AF38 | PUSH DE | Save DE on the stack - Save registers | ||||||||||||||
| AF39 | PUSH BC | Save BC on the stack | ||||||||||||||
| AF3A | PUSH HL | Save HL on the stack | ||||||||||||||
| AF3B | LD B,$0A | Load B with $0A - 10 bytes at IY + A... | ||||||||||||||
| AF3D | PUSH IY | Save IY on the stack | ||||||||||||||
| AF3F | POP HL | Restore HL from the stack | ||||||||||||||
| AF40 | LD E,A | Copy A into E | ||||||||||||||
| AF41 | LD D,$00 | Load D with $00 | ||||||||||||||
| AF43 | ADD HL,DE | Add DE to HL | ||||||||||||||
| AF44 | XOR A | Clear A to zero (and the carry flag) - ...ORed together | ||||||||||||||
| AF45 | OR (HL) | Set in A the bits that are set in the byte HL points at | ||||||||||||||
| AF46 | INC HL | Step HL on to the next byte | ||||||||||||||
| AF47 | DJNZ $AF45 | Count B down and, while it is not zero, go back to AF45 | ||||||||||||||
| AF49 | POP HL | Restore HL from the stack - Restore; Z if all ten were zero (AND A also clears carry) | ||||||||||||||
| AF4A | POP BC | Restore BC from the stack | ||||||||||||||
| AF4B | POP DE | Restore DE from the stack | ||||||||||||||
| AF4C | AND A | Clear the carry flag for the caller (A is unchanged) | ||||||||||||||
| AF4D | RET | Return to the caller | ||||||||||||||
| Prev: AEF1 | Up: Map | Next: AF4E |