Prev: 9E21 Up: Map Next: 9E86
9E55: Drawing mode 7: furniture's colours turned a quarter anticlockwise
Entry 7 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_TURNED_LEFT 9E55 POP BC
9E56 CALL FETCH_SPRITE_ATTRS
9E59 LD A,B
9E5A EXX
9E5B LD B,A
9E5C EXX
9E5D CALL START_AT_LAST_ROW
COLOURS_TURNED_LEFT_0 9E60 PUSH BC
9E61 PUSH DE
9E62 PUSH HL
COLOURS_TURNED_LEFT_1 9E63 LD A,(DE)
9E64 AND A
9E65 JR Z,COLOURS_TURNED_LEFT_3
9E67 CP $FF
9E69 JR NZ,COLOURS_TURNED_LEFT_2
9E6B LD A,($5E1A)
COLOURS_TURNED_LEFT_2 9E6E LD (HL),A
COLOURS_TURNED_LEFT_3 9E6F CALL PREVIOUS_SPRITE_ROW
9E72 INC L
9E73 DEC C
9E74 JR NZ,COLOURS_TURNED_LEFT_1
9E76 POP HL
9E77 LD BC,$0020
9E7A AND A
9E7B SBC HL,BC
9E7D POP DE
9E7E POP BC
9E7F INC DE
9E80 EXX
9E81 DEC B
9E82 EXX
9E83 JR NZ,COLOURS_TURNED_LEFT_0
9E85 RET
Prev: 9E21 Up: Map Next: 9E86