Routines |
Prev: B2C0 | Up: Map | Next: B322 |
Used by the routine at B3F0.
|
||||
B2EE | LD L,(IX+$05) | L=*IX+05. | ||
B2F1 | LD H,(IX+$06) | H=*IX+06. | ||
B2F4 | LD C,(IX+$04) | C=*IX+04. | ||
B2F7 | LD B,(IX+$03) | B=*IX+03. | ||
B2FA | PUSH HL | IX=HL (using the stack). | ||
B2FB | POP IX | |||
B2FD | SET 5,H | Set bit 5 of H. | ||
B2FF | LD DE,$0020 | DE=0020. | ||
B302 | PUSH HL | Stash HL, IX and BC on the stack. | ||
B303 | PUSH IX | |||
B305 | PUSH BC | |||
B306 | LD A,(HL) | A=*HL. | ||
B307 | BIT 6,A | Jump to B312 if bit 6 of A is set. | ||
B309 | JR NZ,$B312 | |||
B30B | AND %00111111 | Keep only bits 0-5. | ||
B30D | OR %01000000 | Set bit 6. | ||
B30F | LD (IX+$00),A | Write A to *IX+00. | ||
B312 | ADD HL,DE | HL+=DE. | ||
B313 | ADD IX,DE | IX+=DE. | ||
B315 | DJNZ $B306 | Decrease counter by one and loop back to B306 until counter is zero. | ||
B317 | POP BC | Restore BC, IX and HL from the stack. | ||
B318 | POP IX | |||
B31A | POP HL | |||
B31B | INC IX | Increment IX by one. | ||
B31D | INC HL | Increment HL by one. | ||
B31E | DEC C | Decrease C by one. | ||
B31F | JR NZ,$B2FF | Jump to B2FF. | ||
B321 | RET | Return. |
Prev: B2C0 | Up: Map | Next: B322 |