![]() |
Routines |
| Prev: 47416 | Up: Map | Next: 47450 |
|
Reads some rows of the keyboard. The row selector is also written to port 253 (with the selector as the high byte of the address), which does nothing on a 48K Spectrum and is not part of any sound; the keyboard is read with the same selector straight afterwards.
|
||||||||||||||
|
Write the selector, then read the keys.
|
||||||||||||||
| ReadKeyboardPort | 47442 | OUT (253),A | Write the row selector to port 253. | |||||||||||
| 47444 | IN A,(254) | Read the keyboard half-rows. | ||||||||||||
| 47446 | CPL | Make the pressed keys set bits. | ||||||||||||
| 47447 | AND %00011111 | Keep only bits 0 to 4. | ||||||||||||
| 47449 | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 47416 | Up: Map | Next: 47450 |