Prev: $2DAD Up: Map Next: $2E05
$2DCB: Initialise colour information
Used by the routine at $2CD9.
$2DCB LDA #$00 Prepare to address the colour information at $CC00.
$2DCD STA $4E
$2DCF LDA #$CC
$2DD1 STA $4F
$2DD3 LDA #$06 Set the border colour to blue.
$2DD5 STA $D020
$2DD8 LDA #$66 Fill addresses $CC00-$CEFF with the value $66 (blue background and blue foreground).
$2DDA LDX #$03
$2DDC LDY #$00
$2DDE STA ($4E),Y
$2DE0 DEY
$2DE1 BNE $2DDE
$2DE3 INC $4F
$2DE5 DEX
$2DE6 BNE $2DDC
$2DE8 STA ($4E),Y Fill addresses $CF00-$CF47 with the value $66 (blue background and blue foreground).
$2DEA LDY #$47
$2DEC STA ($4E),Y
$2DEE DEY
$2DEF BNE $2DEC
$2DF1 LDA #$5D Prepare to address the initial colour information for the bottom four rows of the screen at $5D48.
$2DF3 STA $51
$2DF5 LDA #$00
$2DF7 STA $50
$2DF9 LDY #$48 Fill addresses $CF48-$CFE7 with a copy of the colour information at $5D48.
$2DFB LDA ($50),Y
$2DFD STA ($4E),Y
$2DFF INY
$2E00 CPY #$E8
$2E02 BNE $2DFB
$2E04 RTS
Prev: $2DAD Up: Map Next: $2E05