Prev: 57910 Up: Map Next: 57953
57936: Sound: Tile Moving
Used by the routine at 62526.
Sound_TileMoving 57936 LD A,5 A=5.
57938 LD C,175 Set the frequency control (C) to 175.
Sound_TileMoving_Loop 57940 LD B,C Set duration for this cycle to current frequency value.
57941 SLA B Double the duration.
Sound_TileMoving_PulseLoop 57943 DJNZ Sound_TileMoving_PulseLoop Generate a single tone pulse.
57945 XOR %00010000 Flip bit 4.
57947 OUT (254),A Send to the speaker.
57949 DEC C Decrease frequency (raises pitch, shortens next cycle).
57950 JR NZ,Sound_TileMoving_Loop Jump to Sound_TileMoving_Loop until the frequency is zero.
57952 RET Return.
Prev: 57910 Up: Map Next: 57953