![]() |
Routines |
| Prev: 725C | Up: Map | Next: 7275 |
|
Used by the routines at hit_block and ship_on_slope_response.
Called by hit_block and ship_on_slope_response. 15 cycles whose half period is ((C XOR 2) AND 4) x 8: either 32 loops or 0, which DJNZ counts as 256, in runs of four: four of 32, four of 256, four of 32 and the last three of 256 -- a rough two-note buzz.
|
||||
| sound_buzz | 7263 | LD C,$0F | 15 cycles, half period 32 or 256 loops | |
| sound_buzz_0 | 7265 | LD A,C | ||
| 7266 | XOR $02 | |||
| 7268 | AND $04 | |||
| 726A | ADD A,A | |||
| 726B | ADD A,A | |||
| 726C | ADD A,A | |||
| 726D | LD B,A | |||
| 726E | CALL beep_cycle | |||
| 7271 | DEC C | |||
| 7272 | JR NZ,sound_buzz_0 | |||
| 7274 | RET | |||
| Prev: 725C | Up: Map | Next: 7275 |