Routines |
Prev: 6114 | Up: Map | Next: 6148 |
Used by the routine at 7162.
|
||||
XXX | 612B | PUSH AF | Stash AF on the stack for later. | |
612C | PUSH BC | Stash BC, HL and DE on the stack. | ||
612D | PUSH HL | |||
612E | PUSH DE | |||
612F | CALL $6114 | Call 6114. | ||
6132 | POP DE | Retrieve DE, HL and BC from the stack. | ||
6133 | POP HL | |||
6134 | POP BC | |||
6135 | INC L | |||
6136 | LD A,L | |||
6137 | AND %11100000 | Keep only bits 5-7. | ||
6139 | JR Z,XXXX | |||
613B | XOR A | |||
613C | LD L,A | |||
613D | INC H | |||
XXXX | 613E | DEC DE | ||
613F | LD A,D | |||
6140 | OR E | |||
6141 | JR NZ,XXXXX | |||
6143 | POP AF | Retrieve AF from the stack. | ||
6144 | RET | Return. | ||
Else, loop back to the start.
|
||||
XXXXX | 6145 | POP AF | Retrieve AF from the stack. | |
6146 | JR XXX | Jump back to XXX. |
Prev: 6114 | Up: Map | Next: 6148 |