Prev: 9D19 Up: Map Next: 9D47
9D25: Drawing mode 0: furniture's colours as stored
Entry 0 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_AS_STORED 9D25 POP BC
9D26 CALL FETCH_SPRITE_ATTRS
COLOURS_AS_STORED_0 9D29 PUSH BC
9D2A PUSH HL
COLOURS_AS_STORED_1 9D2B LD A,(DE)
9D2C INC DE
9D2D AND A
9D2E JR Z,COLOURS_AS_STORED_3
9D30 CP $FF
9D32 JR NZ,COLOURS_AS_STORED_2
9D34 LD A,($5E1A)
COLOURS_AS_STORED_2 9D37 LD (HL),A
COLOURS_AS_STORED_3 9D38 INC L
9D39 DJNZ COLOURS_AS_STORED_1
9D3B POP HL
9D3C LD BC,$0020
9D3F AND A
9D40 SBC HL,BC
9D42 POP BC
9D43 DEC C
9D44 JR NZ,COLOURS_AS_STORED_0
9D46 RET
Prev: 9D19 Up: Map Next: 9D47