Programming the system speaker?
Programming the system speaker?
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.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Programming the system speaker?
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 ...
http://www.programmershelp.co.uk/assy/SOUND.ASM might be of some help ...