Routines |
Prev: 57817 | Up: Map | Next: 57936 |
Used by the routine at 57817.
|
||||
57910 | PUSH AF | Stash AF and HL on the stack. | ||
57911 | PUSH HL | |||
57912 | LD A,R | A=the contents of the Memory Refresh Register. | ||
57914 | RLCA | RLCA. | ||
57915 | LD L,A | L=A. | ||
57916 | LD A,R | A=the contents of the Memory Refresh Register. | ||
57918 | RRCA | RRCA. | ||
57919 | RRCA | RRCA. | ||
57920 | RRCA | RRCA. | ||
57921 | LD H,A | H=A. | ||
57922 | LD A,(HL) | A=*HL. | ||
57923 | AND %00011000 | Keep only bits 3-4. | ||
57925 | OR %00000101 | Set bits 0, 2. | ||
57927 | OUT (254),A | Set border to the colour held by A. | ||
57929 | XOR %00010000 | Flip bits 4. | ||
57931 | OUT (254),A | Set border to the colour held by A. | ||
57933 | POP HL | Restore HL and AF from the stack. | ||
57934 | POP AF | |||
57935 | RET | Return. |
Prev: 57817 | Up: Map | Next: 57936 |