Page 1 of 1
Programming the system speaker?
Posted: Tue Dec 14, 2004 6:03 am
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.
Re:Programming the system speaker?
Posted: Tue Dec 14, 2004 7:26 am
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 ...
Re:Programming the system speaker?
Posted: Tue Dec 14, 2004 8:16 am
by Metallic-Red
Thanks. This is exactly what i'm looking for!