Page 1 of 1

speaker programming

Posted: Sun Apr 20, 2008 10:54 pm
by serat
Hi again,

How will the below codes generate some tone although you disable the speaker?

How do the codes work?

; disables the speaker, and stop using channel 2
mov dx, 0x61
out dx, 0

; generates tone from speaker
out dx, 11111101b


thanks

Posted: Sun Apr 20, 2008 11:34 pm
by pathos
If I'm not mistaken, those lines of code are just examples on how to do it, now actually to be executed in order.