Prev: 5FD8 Up: Map Next: 601F
5FDE: Routine at 5FDE
Used by the routine at 5FB0.
5FDE LD A,(DE)
5FDF AND %11111000 Keep only bits 3-7.
5FE1 RET Z
5FE2 BIT 7,A
5FE4 JR NZ,$5FD8
5FE6 LD A,(DE)
5FE7 PUSH AF
5FE8 RRCA
5FE9 RRCA
5FEA AND %00111110 Keep only bits 1-5.
5FEC LD E,A Create an offset in DE.
5FED LD D,$00
5FEF PUSH HL
5FF0 LD HL,$601B HL=601B.
5FF3 ADD HL,DE
5FF4 LD E,(HL)
5FF5 INC HL
5FF6 LD D,(HL)
5FF7 POP HL
5FF8 LD A,C
5FF9 RRCA
5FFA RRCA
5FFB RRCA
5FFC AND $E0
5FFE OR $17
6000 LD H,A
6001 POP AF
6002 AND $07
6004 OR $40
6006 LD ($5E12),A
6009 PUSH IX
600B LD IX,$5E0F
600F CALL $74C6
6012 CALL $7539
6015 CALL ColouriseSprite
6018 POP IX
601A RET
601B DEFW $0000
601D DEFW $7711
Prev: 5FD8 Up: Map Next: 601F