Prev: E8B3 Up: Map Next: E8DA
E8CB: set the colour code
Used by the routine at E716.
enter with the colour character in A. if A does not contain a colour character this routine exits without changing the colour
E8CB A2 0F LDX #$0F set the colour code count
E8CD DD DA E8 CMP $E8DA,X compare the character with a table code
E8D0 F0 04 BEQ $E8D6 if a match go save the colour and exit
E8D2 CA DEX else decrement the index
E8D3 10 F8 BPL $E8CD loop if more to do
E8D5 60 RTS
E8D6 8E 86 02 STX $0286 save the current colour code
E8D9 60 RTS
Prev: E8B3 Up: Map Next: E8DA