Routines |
Prev: 57815 | Up: Map | Next: 57888 |
The screen colours are calculated from the bits that form the room number byte in the routine at 50747.
|
||||
57863 | LD A,(60073) | Get attribute colour for current room | ||
57866 | LD D,14 | 14 rows to colour | ||
57868 | LD HL,22594 | Screen attribute display, top left of play area, just inside decorative border | ||
57871 | LD B,28 | 28 columns to colour | ||
57873 | LD (HL),A | Colour the attribute square | ||
57874 | INC HL | Move right to next character square | ||
57875 | DJNZ 57873 | Repeat for 28 columns | ||
57877 | INC HL | Move right 4 squares to get to the left hand side of the next character row | ||
57878 | INC HL | |||
57879 | INC HL | |||
57880 | INC HL | |||
57881 | DEC D | Repeat for 14 rows | ||
57882 | JR NZ,57871 | |||
57884 | CALL 57888 | Colour Maroc's sprite in by combining his colour (white) with the current screen's PAPER value (not all screens have a black background) | ||
57887 | RET |
Prev: 57815 | Up: Map | Next: 57888 |