![]() |
Routines |
| Prev: D61B | Up: Map | Next: D635 |
|
Used by the routine at FIRE.
32 single waves; each half-wave count is the step count less the one before. FIRE comes here straight from an LDIR that leaves B zero, so the counts alternate between a short one falling from 32 and a long one falling from 255: a high note and a low one, interleaved.
|
||||||||
| FIRE_SOUND | D629 | LD C,$20 | for C = 32 down to 1: one wave at C less the last count | |||||
| FIRE_SOUND_0 | D62B | LD A,C | ||||||
| D62C | SUB B | |||||||
| D62D | LD B,A | |||||||
| D62E | CALL CLICK | |||||||
| D631 | DEC C | |||||||
| D632 | JR NZ,FIRE_SOUND_0 | |||||||
| D634 | RET | |||||||
| Prev: D61B | Up: Map | Next: D635 |