← B8B7 Sound effect: brick destroyed Map B8EC → Sound effect: bomb detonation (one step)
B8DC: Sound effect: brick survives the hit
The sound of a brick hit that leaves the brick in place: a golden brick, or a silver brick that steps down.
sfx_brick_survives B8DC PUSH DE
B8DD PUSH BC
B8DE LD D,$32 The run's first period; it steps from here.
B8E0 LD C,$19 Cycle count for the whole run.
sfx_brick_survives_sweep B8E2 CALL sound_blip Emit one cycle, then lower the pitch a step; loop for the whole run, so no two cycles share a period.
B8E5 INC D
B8E6 DEC C
B8E7 JR NZ,sfx_brick_survives_sweep
B8E9 POP BC Hand the caller's registers back.
B8EA POP DE
B8EB RET
← B8B7 Sound effect: brick destroyed Map B8EC → Sound effect: bomb detonation (one step)
Fork me on GitHub