Prev: 9D25 Up: Map Next: 9D6F
9D47: Drawing mode 1: furniture's colours mirrored
Entry 1 of COLOUR_DRAWERS. It fetches through FETCH_SPRITE_ATTRS, then copies row by row with the combining instruction patched in by SPRITE_COMBINE_OPCODE, the same as every other routine in the two tables.
COLOURS_MIRRORED 9D47 POP BC
9D48 CALL FETCH_SPRITE_ATTRS
9D4B DEC DE
COLOURS_MIRRORED_0 9D4C CALL NEXT_SPRITE_ROW
9D4F PUSH BC
9D50 PUSH DE
9D51 PUSH HL
COLOURS_MIRRORED_1 9D52 LD A,(DE)
9D53 DEC DE
9D54 AND A
9D55 JR Z,COLOURS_MIRRORED_3
9D57 CP $FF
9D59 JR NZ,COLOURS_MIRRORED_2
9D5B LD A,($5E1A)
COLOURS_MIRRORED_2 9D5E LD (HL),A
COLOURS_MIRRORED_3 9D5F INC L
9D60 DJNZ COLOURS_MIRRORED_1
9D62 POP HL
9D63 LD BC,$0020
9D66 AND A
9D67 SBC HL,BC
9D69 POP DE
9D6A POP BC
9D6B DEC C
9D6C JR NZ,COLOURS_MIRRORED_0
9D6E RET
Prev: 9D25 Up: Map Next: 9D6F