Prev: 9E86 Up: Map Next: 9EA3
9E93: Play Click
Plays one cycle of a tone in which the pulse and the gap are equally long.
Input
B The length of the pulse and the gap
PlayClick 9E93 LD A,$10 Set the speaker bit.
9E95 OUT ($FE),A Write to the port.
9E97 LD A,B Save the length in A.
PlayClick_Pulse 9E98 DJNZ PlayClick_Pulse Wait for the length of the pulse.
9E9A LD B,A Restore the length in B.
9E9B XOR A Clear the speaker bit.
9E9C OUT ($FE),A Write to the port.
9E9E LD A,B Save the length in A.
PlayClick_Gap 9E9F DJNZ PlayClick_Gap Wait for the length of the gap.
9EA1 LD B,A Restore the length in B.
9EA2 RET Return.
View the equivalent code in;
Prev: 9E86 Up: Map Next: 9EA3