|  | Routines | 
| Prev: 60525 | Up: Map | Next: 60556 | 
| 
Used by the routine at CheckPassword.
 | ||||
| PlayerTypedInput | 60526 | LD (IY+7),0 | Write 0 (cursor type "C", "K" or "L") to *MODE. | |
| 60530 | SET 3,(IY+48) | Set CAPS LOCK on, using bit 3 of *FLAGS2. | ||
| 60534 | LD HL,23611 | Reset bit 5 of *FLAGS which resets "when a new key has been pressed". | ||
| 60537 | RES 5,(HL) | |||
| PlayerTypedInput_Loop | 60539 | BIT 5,(HL) | Keep jumping back to PlayerTypedInput_Loop until a key was pressed. | |
| 60541 | JR Z,PlayerTypedInput_Loop | |||
| 
Check which key was pressed.
 | ||||
| 60543 | LD A,(23560) | A=*LAST_K. | ||
| 60546 | CP 128 | Jump to 60527 if the ASCII value of the pressed key is 128 or higher (anything higher is invalid). | ||
| 60548 | JR NC,60527 | |||
| 60550 | CP 96 | Return if the ASCII value is 96 or lower. | ||
| 60552 | RET C | |||
| 60553 | RES 5,A | Reset bit 5 of A. | ||
| 60555 | RET | Return. | ||
| Prev: 60525 | Up: Map | Next: 60556 |