Prev: E7CA Up: Map Next: E80B
E7E5: Routine at E7E5
Used by the routines at D2DE, D69F and E901.
E7E5 LD A,R A=the contents of the Memory Refresh Register.
E7E7 PUSH AF Stash AF on the stack.
E7E8 DI Disable interrupts.
E7E9 LD B,$02 B=02.
E7EB PUSH BC Stash BC on the stack.
E7EC LD BC,$1388 BC=1388.
E7EF DEC BC Decrease BC by one.
E7F0 LD A,B Jump to E7EF until BC is equal to 00.
E7F1 OR C
E7F2 JR NZ,$E7EF
E7F4 LD HL,$5800 HL=5800 (screen buffer location).
E7F7 LD BC,$0300 BC=0300.
E7FA LD A,(HL) A=*HL.
E7FB XOR %01111111 Flip bits 0-6.
E7FD LD (HL),A Write A to *HL.
E7FE INC HL Increment HL by one.
E7FF DEC BC Decrease BC by one.
E800 LD A,B Jump to E7FA until BC is equal to 00.
E801 OR C
E802 JR NZ,$E7FA
E804 POP BC Restore BC from the stack.
E805 DJNZ $E7EB Decrease counter by one and loop back to E7EB until counter is zero.
E807 POP AF Restore AF from the stack.
E808 RET PO Return if BC has odd parity (P flag is reset).
E809 EI Enable interrupts.
E80A RET Return.
Prev: E7CA Up: Map Next: E80B