| ← B898 | Map | B8B7 → |
B8A7: Sound effect: brick hit
|
The blip when the missile shot breaks a brick.
|
||||
|
|
||||
| sfx_brick_hit | B8A7 | PUSH DE | Preserve the caller's BC and DE. | |
| B8A8 | PUSH BC | |||
| B8A9 | LD D,$C8 | The first period and the two-cycle count | ||
| B8AB | LD C,$02 | |||
| sfx_brick_hit_0 | B8AD | CALL sound_blip | Emit one square-wave cycle at the current period. | |
| B8B0 | INC D | Step the period between the two cycles. | ||
| B8B1 | DEC C | |||
| B8B2 | JR NZ,sfx_brick_hit_0 | |||
| B8B4 | POP BC | |||
| B8B5 | POP DE | |||
| B8B6 | RET | |||
| ← B898 | Map | B8B7 → |
