![]() |
Routines |
Prev: EC6D | Up: Map | Next: EC8C |
Used by the routine at CheckPassword.
|
||||
PlayerTypedInput | EC6E | LD (IY+$07),$00 | Write 00 (cursor type "C", "K" or "L") to *MODE. | |
EC72 | SET 3,(IY+$30) | Set CAPS LOCK on, using bit 3 of *FLAGS2. | ||
EC76 | LD HL,$5C3B | Reset bit 5 of *FLAGS which resets "when a new key has been pressed". | ||
EC79 | RES 5,(HL) | |||
PlayerTypedInput_Loop | EC7B | BIT 5,(HL) | Keep jumping back to PlayerTypedInput_Loop until a key was pressed. | |
EC7D | JR Z,PlayerTypedInput_Loop | |||
Check which key was pressed.
|
||||
EC7F | LD A,($5C08) | A=*LAST_K. | ||
EC82 | CP $80 | Jump to EC6F if the ASCII value of the pressed key is 80 or higher (anything higher is invalid). | ||
EC84 | JR NC,$EC6F | |||
EC86 | CP $60 | Return if the ASCII value is 60 or lower. | ||
EC88 | RET C | |||
EC89 | RES 5,A | Reset bit 5 of A. | ||
EC8B | RET | Return. |
Prev: EC6D | Up: Map | Next: EC8C |