Prev: D526 Up: Map Next: D5C9
D590: Routine at D590
Used by the routine at D526.
D590 PUSH IX Stash IX, BC and AF on the stack.
D592 PUSH BC
D593 PUSH AF
D594 CALL FetchObjectDataPointer Call FetchObjectDataPointer.
D597 BIT 6,(IX+$05) Jump to D5A5 if bit 6 of *IX+05 is not set.
D59B JR Z,$D5A5
D59D POP AF Restore AF from the stack.
D59E PUSH AF Stash AF and AF on the stack.
D59F PUSH AF
D5A0 LD HL,$68B1 HL=68B1.
D5A3 JR $D5C1 Jump to D5C1.
D5A5 LD HL,$0485 HL=0485.
D5A8 DEC C Decrease C by one.
D5A9 JR Z,$D5AE Jump to D5AE if C is equal to A.
D5AB LD HL,$007A HL=007A.
D5AE PUSH HL Stash HL on the stack.
D5AF CALL $D5D3 Call D5D3.
D5B2 LD A,$01 Write 01 to *A2AA.
D5B4 LD ($A2AA),A
D5B7 CALL $D3D5 Call D3D5.
D5BA XOR A Write 00 to *A2AA.
D5BB LD ($A2AA),A
D5BE LD HL,$68D9 HL=68D9.
D5C1 CALL $A59F Call A59F.
D5C4 POP AF Restore AF, BC and IX from the stack.
D5C5 POP BC
D5C6 POP IX
D5C8 RET Return.
Prev: D526 Up: Map Next: D5C9