![]() |
Routines |
| Prev: 45273 | Up: Map | Next: 45340 |
|
Adds the keys that work with every method of control, and stores the controls. Any of the keys Z, X, C, V, Symbol Shift, M, N and B fires the first weapon.
|
||||||||||||||||||||
| FinishJoystickControls | 45315 | LD A,(38437) | Fetch the controls that have not been used yet... | |||||||||||||||||
| 45318 | AND 191 | ...clear the bit for the action key... | ||||||||||||||||||
| 45320 | OR C | ...and add the controls that were read. | ||||||||||||||||||
| 45321 | LD C,A | Keep the controls. | ||||||||||||||||||
| 45322 | LD A,126 | Read from the keyboard;
|
||||||||||||||||||
| 45324 | CALL ReadKeys | |||||||||||||||||||
| 45327 | AND 30 | Jump if none of the keys Z, X, C, V, Symbol Shift, M, N and B is pressed. | ||||||||||||||||||
| 45329 | JR Z,FinishJoystickControls_Store | |||||||||||||||||||
| 45331 | SET 4,C | Set the bit for firing the first weapon. | ||||||||||||||||||
| FinishJoystickControls_Store | 45333 | LD A,C | Fetch the controls... | |||||||||||||||||
| 45334 | LD (38437),A | ...and store them. | ||||||||||||||||||
| 45337 | POP BC | Restore BC. | ||||||||||||||||||
| 45338 | LD C,A | Return the controls in C as well. | ||||||||||||||||||
| 45339 | RET | Return. | ||||||||||||||||||
| Prev: 45273 | Up: Map | Next: 45340 |