![]() |
Routines |
| Prev: 51946 | Up: Map | Next: 52004 |
|
Used by the routine at InitialiseGame.
Counts FireTimer down and fills the chamber for BulletsLoaded from ChamberColours. The colours are used from the last to the first.
|
||||
|
Count down FireTimer and pick a colour from ChamberColours.
|
||||
| FlashChamber | 51971 | LD A,(41541) | Return if FireTimer is zero. | |
| 51974 | AND A | |||
| 51975 | RET Z | |||
| 51976 | DEC A | Count FireTimer down. | ||
| 51977 | LD (41541),A | |||
| 51980 | LD HL,52004 | Point HL at ChamberColours. | ||
| 51983 | CALL AddAToHL | Call AddAToHL. | ||
| 51986 | LD A,(HL) | Fetch the colour. | ||
| 51987 | PUSH AF | Stash the colour on the stack. | ||
|
Fill the chamber for BulletsLoaded.
|
||||
| 51988 | LD A,(41570) | Fetch BulletsLoaded. | ||
| 51991 | LD BC,51680 | Point BC at ChamberAddresses. | ||
| 51994 | CALL GetTableEntry | Call GetTableEntry. | ||
| 51997 | CALL AddTownOffsetToHL | Call AddTownOffsetToHL. | ||
| 52000 | POP AF | Restore the colour from the stack. | ||
| 52001 | JP FillChamber | Jump to FillChamber. | ||
| Prev: 51946 | Up: Map | Next: 52004 |