![]() |
Routines |
| Prev: C08D | Up: Map | Next: C0B6 |
|
Used by the routines at CheckPause, ReadInterface2, ReadCursorKeys, FinishJoystickControls, ReadKeyboard, HandlerHallOfFame, GameMenu and PlayMusic_WaitKey.
Reads the keyboard.
|
||||||||||||||
| ReadKeys | C0AB | PUSH BC | Save BC. | |||||||||||
| C0AC | LD C,$FE | Set up the port. | ||||||||||||
| C0AE | LD B,A | |||||||||||||
| C0AF | IN A,(C) | Read the keys. | ||||||||||||
| C0B1 | POP BC | Restore BC. | ||||||||||||
| C0B2 | CPL | Make a set bit mean that a key is pressed... | ||||||||||||
| C0B3 | AND $1F | ...and keep only the bits of the five keys. | ||||||||||||
| C0B5 | RET | Return. | ||||||||||||
| Prev: C08D | Up: Map | Next: C0B6 |