![]() |
Routines |
| Prev: 81AE | Up: Map | Next: 81D4 |
|
If CAPS + SPACE is held down, loop until it is released.
|
||||
| 81C4 | LD A,$FE | Read CAPS - V on the keyboard. | ||
| 81C6 | IN A,($FE) | |||
| 81C8 | LD B,A | Put this in B. | ||
| 81C9 | LD A,$7F | Read SPACE - B on the keyboard. | ||
| 81CB | IN A,($FE) | |||
| 81CD | OR B | Merge the two key presses together. | ||
| 81CE | BIT 0,A | Did both have the first key pressed? (ie: CAPS + SPACE ) | ||
| 81D0 | RET NZ | Return if not. | ||
| 81D1 | JP $81C4 | Otherwise loop back and wait until the keys are released. | ||
| Prev: 81AE | Up: Map | Next: 81D4 |