![]() |
Routines |
| Prev: 6BA5 | Up: Map | Next: 6BD0 |
|
Used by the routine at FireWeapon.
Fires a smoke bomb to the right of Robbie, if he is not too close to the right edge of the play area.
|
||||||||||
| FireSmokeBomb_Right | 6BC7 | CP $C0 | Return if Robbie is too close to the right edge. | |||||||
| 6BC9 | RET NC | |||||||||
| 6BCA | ADD A,$18 | Add 18 to the X position (so it starts to the right of Robbie). | ||||||||
| 6BCC | LD (HL),$04 | Write 04 (a smoke bomb moving right) to the state of the weapon. | ||||||||
| 6BCE | JR FireWeapon_SmokeColour | Jump to FireWeapon_SmokeColour. | ||||||||
| Prev: 6BA5 | Up: Map | Next: 6BD0 |