Routines |
Prev: 54281 | Up: Map | Next: 54540 |
Used by the routine at WriteSceneToShadowBuffer.
|
||||
54504 | EX AF,AF' | Exchange the AF register with the shadow AF register. | ||
54505 | ADD A,H | A+=H. | ||
54506 | LD H,A | H=A. | ||
54507 | LD A,B | A=B. | ||
54508 | ADD A,131 | A+=131. | ||
54510 | LD D,A | D=A. | ||
54511 | LD E,C | E=C. | ||
54512 | LD A,(53792) | A=*53792. | ||
54515 | AND A | |||
54516 | LD A,(HL) | A=*HL. | ||
54517 | JR Z,54537 | Jump to 54537 if *53792 is zero. | ||
54519 | LD A,C | A=C. | ||
54520 | AND %00011111 | Keep only bits 0-4. | ||
54522 | EXX | Switch to the shadow registers. | ||
54523 | LD C,A | C=A. | ||
54524 | LD B,0 | B=0. | ||
54526 | LD HL,54047 | HL=54047. | ||
54529 | ADD HL,BC | HL+=BC. | ||
54530 | LD A,(53792) | C=*53792. | ||
54533 | LD C,A | |||
54534 | ADD HL,BC | HL+=BC. | ||
54535 | LD A,(HL) | A=*HL. | ||
54536 | EXX | Switch back to the normal registers. | ||
54537 | LD (DE),A | Write A to *DE. | ||
54538 | INC HL | Increment HL by one. | ||
54539 | RET | Return. |
Prev: 54281 | Up: Map | Next: 54540 |