Prev: 24803 Up: Map Next: 24838
24827: Play Sound
Used by the routines at PlayNoise and PlaySquareWave.
Flips the speaker bit (bit 4) of the value held at SoundStore and writes the result to port 254. The lower bits of the value set the border colour.
PlaySound 24827 LD A,(24135) Fetch the speaker and border state from SoundStore.
24830 XOR %00010000 Flip bit 4 (the speaker).
24832 LD (24135),A Write the new speaker and border state back to SoundStore.
24835 OUT (254),A Write the state to port 254 which sets the speaker and the border colour.
24837 RET Return.
Prev: 24803 Up: Map Next: 24838