![]() |
Routines |
| Prev: B65F | Up: Map | Next: B690 |
|
Used by the routines at SCENE_TOOL and THUD_ON_LANDING.
Sixteen blips of two waves at pitches read from the first 8K of the ROM, less their top bits: the address is the random number in the low byte and the turn counter's low five bits in the high one, so it differs every time. Used by SCENE_TOOL and THUD_ON_LANDING. As Knight Lore's crash sound.
|
||||
| CRASH_SOUND | B676 | LD A,(RANDOM) | HL = an address in the ROM; sixteen | |
| B679 | LD L,A | |||
| B67A | LD A,(TURNS) | |||
| B67D | AND $1F | |||
| B67F | LD H,A | |||
| B680 | LD E,$10 | |||
| CRASH_SOUND_0 | B682 | LD A,(HL) | two waves at each ROM byte, less its top bit | |
| B683 | INC HL | |||
| B684 | AND $7F | |||
| B686 | LD B,A | |||
| B687 | LD C,$02 | |||
| B689 | CALL BEEP | |||
| B68C | DEC E | |||
| B68D | JR NZ,CRASH_SOUND_0 | |||
| B68F | RET | |||
| Prev: B65F | Up: Map | Next: B690 |