![]() |
Routines |
| Prev: 37720 | Up: Map | Next: 37784 |
|
Used by the routine at DrawRoom.
Reads the key to pick up an item, which is CAPS SHIFT or SPACE, and Z or SYMBOL SHIFT. The result is stored in PickupPressed.
|
||||||||||||||||||||
| ReadPickupKey | 37771 | LD A,126 | Read from the keyboard;
|
|||||||||||||||||
| 37773 | OUT (253),A | |||||||||||||||||||
| 37775 | IN A,(254) | |||||||||||||||||||
| 37777 | CPL | Flip the bits, so that a set bit is a key which is pressed. | ||||||||||||||||||
| 37778 | AND %00000010 | Keep only bit 1. | ||||||||||||||||||
| 37780 | LD (24096),A | Update the pickup pressed flag in PickupPressed. | ||||||||||||||||||
| 37783 | RET | Return. | ||||||||||||||||||
| Prev: 37720 | Up: Map | Next: 37784 |