Prev: E1D9 Up: Map Next: E250
E236: Routine at E236
Used by the routine at E1D9.
E236 PUSH AF Stash AF and HL on the stack.
E237 PUSH HL
E238 LD A,R A=the contents of the Memory Refresh Register.
E23A RLCA RLCA.
E23B LD L,A L=A.
E23C LD A,R A=the contents of the Memory Refresh Register.
E23E RRCA RRCA.
E23F RRCA RRCA.
E240 RRCA RRCA.
E241 LD H,A H=A.
E242 LD A,(HL) A=*HL.
E243 AND %00011000 Keep only bits 3-4.
E245 OR %00000101 Set bits 0, 2.
E247 OUT ($FE),A Set border to the colour held by A.
E249 XOR %00010000 Flip bits 4.
E24B OUT ($FE),A Set border to the colour held by A.
E24D POP HL Restore HL and AF from the stack.
E24E POP AF
E24F RET Return.
Prev: E1D9 Up: Map Next: E250