![]() |
Routines |
| Prev: 49293 | Up: Map | Next: 49334 |
|
Used by the routines at CheckPause, ReadInterface2, ReadCursorKeys, FinishJoystickControls, ReadKeyboard, HandlerHallOfFame, GameMenu and PlayMusic_WaitKey.
Reads the keyboard.
|
||||||||||||||
| ReadKeys | 49323 | PUSH BC | Save BC. | |||||||||||
| 49324 | LD C,254 | Set up the port. | ||||||||||||
| 49326 | LD B,A | |||||||||||||
| 49327 | IN A,(C) | Read the keys. | ||||||||||||
| 49329 | POP BC | Restore BC. | ||||||||||||
| 49330 | CPL | Make a set bit mean that a key is pressed... | ||||||||||||
| 49331 | AND 31 | ...and keep only the bits of the five keys. | ||||||||||||
| 49333 | RET | Return. | ||||||||||||
| Prev: 49293 | Up: Map | Next: 49334 |