![]() |
Routines |
| Prev: 44781 | Up: Map | Next: 44848 |
|
Used by the routine at ReloadRevolver.
Plays a short, rough buzz made of twelve pulses of different lengths.
|
||||
|
Play twelve pulses of different lengths.
|
||||
| PlayBuzz | 44834 | LD C,12 | Set the number of pulses. | |
|
Play the next pulse.
|
||||
| PlayBuzz_Loop | 44836 | LD A,C | Fetch the number of the pulse. | |
| 44837 | XOR %10100101 | Change it. | ||
| 44839 | ADD A,C | Add it to the number of the pulse. | ||
| 44840 | LD B,A | Use it as the length of the pulse. | ||
| 44841 | CALL PlaySquareWave | Play the pulse. | ||
| 44844 | DEC C | Count down the pulses. | ||
| 44845 | JR NZ,PlayBuzz_Loop | Loop back until all of the pulses have been played. | ||
| 44847 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 44781 | Up: Map | Next: 44848 |