Prev: A5C8 Up: Map Next: A609
A5CD: Routine at A5CD
Used by the routines at A3E0 and A54F.
A5CD LD A,(IX+$06) A=IX+06.
A5D0 OR (IX+$07)
A5D3 JR NZ,$A609
A5D5 LD A,($9695) A=9695.
A5D8 AND %00000111 Keep only bits 0-2.
A5DA LD L,A
A5DB LD H,$00
A5DD LD BC,$A601 BC=A601.
A5E0 ADD HL,BC
A5E1 LD A,(HL)
A5E2 LD (IX+$06),A
A5E5 BIT 7,A
A5E7 JR Z,$A5FB
A5E9 RES 1,(IX+$00)
A5ED LD A,($5C78) A=FRAMES.
A5F0 AND %00000111 Keep only bits 0-2.
A5F2 LD L,A
A5F3 LD H,$00
A5F5 ADD HL,BC
A5F6 LD A,(HL)
A5F7 LD (IX+$07),A
A5FA RET Return.
A5FB SET 1,(IX+$00)
A5FF JR $A5ED Jump to A5ED.
A601 DEFB $A0,$B0,$C0,$D0,$30,$40,$50,$60
Prev: A5C8 Up: Map Next: A609