Prev: 58752 Up: Map Next: 59338
59312: Routine at E7B0
Used by the routines at 53982 and 58752.
59312 LD A,R L=the contents of the Memory Refresh Register.
59314 LD L,A
59315 LD H,1 H=1.
59317 LD B,100 B=100.
59319 LD A,(HL) A=*HL.
59320 AND %00011000 Keep only bits 3-4.
59322 OR %00000101 Set bits 0, 2.
59324 OUT (254),A Set border to the colour held by A.
59326 INC HL Increment HL by one.
59327 LD A,R A=the contents of the Memory Refresh Register.
59329 INC A Increment A by one.
59330 RLCA RLCA.
59331 LD E,A E=A.
59332 DEC E Decrease E by one.
59333 JR NZ,59332 Jump to 59332 until E is equal to 0.
59335 DJNZ 59319 Decrease counter by one and loop back to 59319 until counter is zero.
59337 RET Return.
Prev: 58752 Up: Map Next: 59338