Prev: B619 Up: Map Next: B63C
B62C: The sound of a jump
Used by the routine at HANDLE_JUMP.
A rising sweep of 32 single waves: five right rotations are three left ones, so the half-wave count is 8 times the step, which falls from 32 to 1 (the first, 256, wraps round to 1). Used by HANDLE_JUMP. As Knight Lore's sound_jump.
JUMP_SOUND B62C LD C,$20 half-wave count 8 * C
JUMP_SOUND_0 B62E LD A,C
B62F RRCA
B630 RRCA
B631 RRCA
B632 RRCA
B633 RRCA
B634 LD B,A
B635 CALL CLICK one wave
B638 DEC C until C runs out
B639 JR NZ,JUMP_SOUND_0
B63B RET
Prev: B619 Up: Map Next: B63C