Prev: E1D7 Up: Map Next: E220
E207: Set screen colour for current room
Used by the routines at C63B, DA4D and DA88.
The screen colours are calculated from the bits that form the room number byte in the routine at C63B.
E207 LD A,($EAA9) Get attribute colour for current room
E20A LD D,$0E 14 rows to colour
E20C LD HL,$5842 Screen attribute display, top left of play area, just inside decorative border
E20F LD B,$1C 28 columns to colour
E211 LD (HL),A Colour the attribute square
E212 INC HL Move right to next character square
E213 DJNZ $E211 Repeat for 28 columns
E215 INC HL Move right 4 squares to get to the left hand side of the next character row
E216 INC HL
E217 INC HL
E218 INC HL
E219 DEC D Repeat for 14 rows
E21A JR NZ,$E20F
E21C CALL $E220 Colour Maroc's sprite in by combining his colour (white) with the current screen's PAPER value (not all screens have a black background)
E21F RET
Prev: E1D7 Up: Map Next: E220