Hardware:Sound Blaster:DSP commands:0xE0 - Wengier/dosbox-x-wiki GitHub Wiki

DSP command 0xE0

Supported on

Creative Sound Blaster 2.0 (and later??)

Description

Identify as SB2.0 device by returning the data byte with all bits inverted

How to use

unsigned char data_byte,tmp;

/* pick a data byte to use */

DSP_Write(0xE0);
DSP_Write(data_byte);
tmp = DSP_Read();
if ((data_byte ^ 0xFF) == tmp) {
    /* It's a Sound Blaster 2.0 */
}

Write command 0xE0, then some data byte. Read from the DSP. The byte returned should be the value you wrote, with all bits inverted. This command is documented as only supported by the Sound Blaster 2.0

External references

⚠️ **GitHub.com Fallback** ⚠️