![]() |
Routines |
| Prev: 34120 | Up: Map | Next: 34279 |
|
Used by the routines at Select1Or2PlayerGame and Handler_SubGame.
|
||||
|
Switch the active player.
|
||||
| Toggle_Players | 34254 | LD HL,(61426) | Store *Pointer_ActivePlayer in HL for the comparison. | |
|
Start with comparing against 1UP.
|
||||
| 34257 | LD DE,35880 | DE=1UP_Name. | ||
| 34260 | AND A | If the currently active player is not 1UP then jump to Set_Active_Player (which will then set it to 1UP). | ||
| 34261 | SBC HL,DE | |||
| 34263 | JR NZ,Set_Active_Player | |||
|
Else, set the active player to 2UP.
|
||||
| 34265 | LD DE,35896 | DE=2UP_Name. | ||
|
Sets the active player to *Pointer_ActivePlayer.
|
||||
| Set_Active_Player | 34268 | LD (61426),DE | Write DE to *Pointer_ActivePlayer. | |
| 34272 | LD HL,15 | Move HL 0015 bytes to point to the active player state. | ||
| 34275 | ADD HL,DE | |||
| 34276 | BIT 7,(HL) | Test bit 7 of *HL. | ||
| 34278 | RET | Return. | ||
| Prev: 34120 | Up: Map | Next: 34279 |