![]() |
Routines |
| Prev: 48878 | Up: Map | Next: 48919 |
|
Used by the routine at HandlerAppearingNastie.
Plays six cycles of a tone with a half-period which depends on the low three bits of the sprite ID, so the sound changes as the sprite changes.
|
||||||||
| PlayAppearingSound | 48904 | LD A,(IX+0) | Fetch the sprite ID of the actor. | |||||
| 48907 | CPL | Flip the bits. | ||||||
| 48908 | RRCA | Rotate right three times. | ||||||
| 48909 | RRCA | |||||||
| 48910 | RRCA | |||||||
| 48911 | AND %11100000 | Keep only bits 5-7. | ||||||
| 48913 | LD B,A | Store the result in B (the half-period). | ||||||
| 48914 | LD C,6 | Set the number of cycles in C to 6. | ||||||
| 48916 | JP PlayWaveSequence | Jump to PlayWaveSequence to play the sound. | ||||||
| Prev: 48878 | Up: Map | Next: 48919 |