|  | Routines | 
| Prev: 54162 | Up: Map | Next: 54196 | 
| 
Used by the routine at Controls_Joystick.
 | ||||||||||||||||||||
| Controls_Keyboard | 54171 | LD A,247 | Read from the keyboard; 
 | |||||||||||||||||
| 54173 | IN A,(254) | |||||||||||||||||||
| 
Handle "1" being pressed.
 | ||||||||||||||||||||
| Controls_Input_01 | 54175 | BIT 0,A | If "1" isn't being pressed then jump to Controls_Input_02. | |||||||||||||||||
| 54177 | JR NZ,Controls_Input_02 | |||||||||||||||||||
| 54179 | LD A,18 | Set A=$12 and return. | ||||||||||||||||||
| 54181 | RET | |||||||||||||||||||
| 
Handle "2" being pressed.
 | ||||||||||||||||||||
| Controls_Input_02 | 54182 | BIT 1,A | If "2" isn't being pressed then jump to Controls_Input_03. | |||||||||||||||||
| 54184 | JR NZ,Controls_Input_03 | |||||||||||||||||||
| 54186 | LD A,16 | Set A=$10 and return. | ||||||||||||||||||
| 54188 | RET | |||||||||||||||||||
| 
Handle "3" being pressed.
 | ||||||||||||||||||||
| Controls_Input_03 | 54189 | BIT 2,A | If "3" isn't being pressed then jump to Controls_Input_O_P. | |||||||||||||||||
| 54191 | JR NZ,Controls_Input_O_P | |||||||||||||||||||
| 54193 | LD A,17 | Set A=$11 and return. | ||||||||||||||||||
| 54195 | RET | |||||||||||||||||||
| Prev: 54162 | Up: Map | Next: 54196 |