![]() |
Routines |
| Prev: 29118 | Up: Map | Next: 29192 |
| 29178 | CALL 29118 | Collect the code of the last key pressed in A |
| 29181 | RET Z | Return if no key was pressed |
| 29182 | SUB 48 | We're only interested in keys with codes 48 onwards |
| 29184 | JR C,29176 | Jump if none of these was pressed |
| 29186 | LD L,A | Point HL at the relevant entry in the keypress offset table at 58624 |
| 29187 | LD H,229 | |
| 29189 | LD A,(HL) | Pick up the offset from that table |
| 29190 | AND A | Set the zero flag if the offset is 0 (i.e. not a game key) |
| 29191 | RET |
| Prev: 29118 | Up: Map | Next: 29192 |