speaker programming

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
serat
Posts:2
Joined:Sun Apr 20, 2008 9:50 pm
speaker programming

Post by serat » Sun Apr 20, 2008 10:54 pm

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

pathos
Moderator
Posts:97
Joined:Thu Jan 10, 2008 6:43 pm
Location:USA

Post by pathos » Sun Apr 20, 2008 11:34 pm

If I'm not mistaken, those lines of code are just examples on how to do it, now actually to be executed in order.

Post Reply