![]() |
Routines |
| Prev: C010 | Up: Map | Next: C027 |
|
Used by the routine at MaterialiseEntity.
Makes a short tone of random pitch.
|
||||
| MakeRandomBeep | C01A | LD A,($9617) | Fetch the random number. | |
| C01D | AND $3F | Keep it between 20 and 3F... | ||
| C01F | OR $20 | |||
| C021 | LD B,A | ...to use as the pitch. | ||
| C022 | LD C,$0C | The tone is made of 0C cycles. | ||
| C024 | JP PlayWaveSequence | Make the tone using PlayWaveSequence. | ||
| Prev: C010 | Up: Map | Next: C027 |