Programming the system speaker?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Metallic-Red

Programming the system speaker?

Post by Metallic-Red »

How do I program the built in system speaker? Is there a port I should be writing to? I am using NASM and I would prefer any code to be in 16 bit real mode. Any help is appreciated.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Programming the system speaker?

Post by Pype.Clicker »

basically, it uses one of the counter on the PIT to set a frequency and a gate somewhere (controlled through the PPI - 8255 or through the multi-purpose 8042 on AT computer) to enable/disable sound ouptut ...

http://www.programmershelp.co.uk/assy/SOUND.ASM might be of some help ...
Metallic-Red

Re:Programming the system speaker?

Post by Metallic-Red »

Thanks. This is exactly what i'm looking for!
Post Reply