![]() |
Routines |
| Prev: 48943 | Up: Map | Next: 48971 |
|
Used by the routine at HandlerTribesman.
Plays eight cycles of a tone. The half-period is the distance to the nearest amulet piece, plus the X and Y positions of the actor, rotated left twice.
|
||||||||||
| PlayAmuletPieceSound | 48957 | ADD A,(IX+3) | Add the X position of the actor to the distance. | |||||||
| 48960 | ADD A,(IX+4) | Add the Y position of the actor to the distance. | ||||||||
| 48963 | RLCA | Rotate left twice. | ||||||||
| 48964 | RLCA | |||||||||
| 48965 | LD B,A | Store the result in B (the half-period). | ||||||||
| 48966 | LD C,8 | Set the number of cycles in C to 8. | ||||||||
| 48968 | JP PlayWaveSequence | Jump to PlayWaveSequence to play the sound. | ||||||||
| Prev: 48943 | Up: Map | Next: 48971 |