![]() |
Routines |
| 26422 | SET 3,(IY+48) | Put CAPS LOCK on |
| 26426 | CALL 26584 | Get input from Kempston joystick if in use |
| 26429 | BIT 5,(HL) | Check bit 5 of 23611, which will be set if a key was pressed; reset bit 5 afterwards |
| 26431 | RES 5,(HL) | |
| 26433 | RET Z | Return with the zero flag set if no key was pressed |
| 26434 | LD A,(23560) | Get last key pressed |
| 26437 | CP 13 | Was it ENTER? |
| 26439 | JR Z,26445 | Jump if so |
| 26441 | CP 32 | Return with the zero flag reset if the last key pressed had an ASCII code between 32 and 127 inclusive (or it was ENTER) |
| 26443 | JR C,26448 | |
| 26445 | CP 128 | |
| 26447 | RET C | |
| 26448 | XOR A | Return with the zero flag set to indicate no key of interest pressed |
| 26449 | RET |