Sound Blaster 16: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Line 114: Line 114:
OUTB 0x22C, 0x40 ;set time constant
OUTB 0x22C, 0x40 ;set time constant
OUTB 0x22C, 165 ;10989 Hz
OUTB 0x22C, 165 ;10989 Hz
OUTB 0x22C, 0x14 ;mode DAC 8 bit
OUTB 0x22C, 0xC0 ;8 bit sound
OUTB 0x22C, 0xFE ;COUNT LOW BIT (EXAMPLE 0x0FFF) - SET THIS VALUE FOR YOU
OUTB 0x22C, 0x00 ;mono and unsigned sound data
OUTB 0x22C, 0x0F ;COUNT HIGH BIT (EXAMPLE 0x0FFF) - SET THIS VALUE FOR YOU
OUTB 0x22C, 0xFE ;COUNT LOW BIT - COUNT LENGHT-1 (EXAMPLE 0x0FFF SO 0x0FFE) - SET THIS VALUE FOR YOU
OUTB 0x22C, 0x0F ;COUNT HIGH BIT - COUNT LENGHT-1 (EXAMPLE 0x0FFF SO 0x0FFE) - SET THIS VALUE FOR YOU


;now transfer start - dont forget to handle irq
;now transfer start - dont forget to handle irq