![]() |
Routines |
| Prev: AEED | Up: Map | Next: AF30 |
|
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 | AF22 | LD C,$0C | Set the number of pulses. | |
|
Play the next pulse.
|
||||
| PlayBuzz_Loop | AF24 | LD A,C | Fetch the number of the pulse. | |
| AF25 | XOR %10100101 | Change it. | ||
| AF27 | ADD A,C | Add it to the number of the pulse. | ||
| AF28 | LD B,A | Use it as the length of the pulse. | ||
| AF29 | CALL PlaySquareWave | Play the pulse. | ||
| AF2C | DEC C | Count down the pulses. | ||
| AF2D | JR NZ,PlayBuzz_Loop | Loop back until all of the pulses have been played. | ||
| AF2F | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: AEED | Up: Map | Next: AF30 |