![]() |
Routines |
| Prev: F73B | Up: Map | Next: F774 |
|
Used by the routine at Controller_GeneralSounds.
|
||||
| SoundHandler_CaughtByPirate | F753 | PUSH BC | Stash BC and DE on the stack. | |
| F754 | PUSH DE | |||
| F755 | LD BC,$0096 | BC=0096. | ||
| F758 | LD DE,$0064 | DE=0064. | ||
| F75B | CALL PlayWave4 | Call PlayWave4. | ||
| F75E | LD DE,$0064 | DE=0064. | ||
| F761 | LD BC,$0001 | BC=0001. | ||
| F764 | CALL PlayWave2 | Call PlayWave2. | ||
| F767 | POP DE | Restore DE, BC and AF from the stack. | ||
| F768 | POP BC | |||
| F769 | POP AF | |||
|
The sound has now been played, so turn off the flag.
|
||||
| F76A | LD A,$00 | Write 00 to *SoundFlag_General. | ||
| F76C | LD ($FFFE),A | |||
| F76F | POP AF | Restore AF from the stack. | ||
| F770 | EI | Enable interrupts. | ||
| F771 | POP IY | Restore IY from the stack. | ||
| F773 | RET | Return. | ||
| Prev: F73B | Up: Map | Next: F774 |