| The Hobbit (v1.0) | Routines |
| Prev: 8AF5 | Up: Map | Next: 8B09 |
|
Increases HL, unless that would move it out of the attribute file.
|
||||
| 8AFF | PUSH AF | Save AF | ||
| 8B00 | INC HL | Move HL one cell right | ||
| 8B01 | LD A,H | Did that go past the right edge? | ||
| 8B02 | CP $5A | |||
| 8B04 | JR NZ,$8B07 | |||
| 8B06 | DEC HL | If so, undo the move: stay put | ||
| 8B07 | POP AF | Restore AF | ||
| 8B08 | RET | |||
| Prev: 8AF5 | Up: Map | Next: 8B09 |