![]() |
Routines |
| Prev: 34448 | Up: Map | Next: 34532 |
|
Used by the routine at RunTitleMenu.
Reads the keys that choose the number of players ("A" and "B") and the control methods of each player ("1" and "2").
|
||||
| ReadMenuKeys | 34489 | LD A,253 | Read the keyboard row "A" to "G". | |
| 34491 | OUT (253),A | |||
| 34493 | IN A,(254) | Test the "A" key. | ||
| 34495 | AND 1 | |||
| 34497 | JR NZ,ReadMenuKeys_B | Jump to ReadMenuKeys_B if it is not pressed. | ||
| 34499 | LD (62178),A | Select option zero in TwoPlayerFlag. | ||
| ReadMenuKeys_B | 34502 | LD A,127 | Read the keyboard row "B" to "SPACE". | |
| 34504 | OUT (253),A | |||
| 34506 | IN A,(254) | Test the "B" key. | ||
| 34508 | BIT 4,A | |||
| 34510 | JR NZ,ReadMenuKeys_Icons | Jump to ReadMenuKeys_Icons if it is not pressed. | ||
| 34512 | LD A,1 | Select option one in TwoPlayerFlag. | ||
| 34514 | LD (62178),A | |||
| ReadMenuKeys_Icons | 34517 | LD IX,34568 | Use the control icon data for player one. | |
| 34521 | LD B,1 | Use the "1" key. | ||
| 34523 | CALL ChangeControlMethod | Check for a change of control method. | ||
| 34526 | LD IX,34571 | Use the control icon data for player two. | ||
| 34530 | LD B,2 | Use the "2" key. | ||
|
Continue on to ChangeControlMethod.
|
||||
| Prev: 34448 | Up: Map | Next: 34532 |