![]() |
Routines |
| Prev: AF49 | Up: Map | Next: AF57 |
|
Used by the routines at HandleSheriffEntrance and HandleDying.
Plays a short tone. The higher the number, the higher the tone.
The sounds played by this routine are:
|
||||||||||||||
| PlayShortTone | AF4F | ADD A,A | Multiply the number by four. | |||||||||||
| AF50 | ADD A,A | |||||||||||||
| AF51 | CPL | Invert it. | ||||||||||||
| AF52 | LD B,A | Use it as the length of a pulse. | ||||||||||||
| AF53 | LD C,$04 | Set the number of pulses. | ||||||||||||
| AF55 | JR PlayWaveSequence | Play the tone. | ||||||||||||
| Prev: AF49 | Up: Map | Next: AF57 |