| The Hobbit (v1.0) | Routines |
| Prev: 8AFF | Up: Map | Next: 8B18 |
|
Increases E (y), unless it would go past 127. Returns with Z set if the edge was reached. A is preserved.
|
||||
| 8B09 | INC E | y + 1 | ||
| 8B0A | BIT 7,E | Past 127? | ||
| 8B0C | JR Z,$8B13 | No: return with Z reset | ||
| 8B0E | DEC E | Yes: undo it... | ||
| 8B0F | LD H,A | |||
| 8B10 | XOR A | ...and return with Z set (A preserved) | ||
| 8B11 | LD A,H | |||
| 8B12 | RET | |||
|
This entry point is used by the routine at 8B18.
|
||||
| 8B13 | LD H,A | } | ||
| 8B14 | OR $01 | Reset Z (A preserved) | ||
| 8B16 | LD A,H | |||
| 8B17 | RET | |||
| Prev: 8AFF | Up: Map | Next: 8B18 |