Extended mode toggle
This commit is contained in:
@@ -142,6 +142,7 @@ typedef struct sb_dsp_t {
|
|||||||
|
|
||||||
uint8_t ess_regs[256]; /* ESS registers. */
|
uint8_t ess_regs[256]; /* ESS registers. */
|
||||||
uint8_t ess_playback_mode;
|
uint8_t ess_playback_mode;
|
||||||
|
uint8_t ess_extended_mode;
|
||||||
|
|
||||||
mpu_t *mpu;
|
mpu_t *mpu;
|
||||||
} sb_dsp_t;
|
} sb_dsp_t;
|
||||||
|
@@ -610,6 +610,13 @@ sb_exec_command(sb_dsp_t *dsp)
|
|||||||
if (dsp->sb_type >= SB16)
|
if (dsp->sb_type >= SB16)
|
||||||
dsp->sb_8051_ram[0x20] = dsp->sb_command;
|
dsp->sb_8051_ram[0x20] = dsp->sb_command;
|
||||||
|
|
||||||
|
if (IS_ESS(dsp)) {
|
||||||
|
if (dsp->sb_command == 0xC6 || dsp->sb_command == 0xC7){
|
||||||
|
dsp->ess_extended_mode = !!(dsp->sb_command == 0xC6);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (dsp->sb_command) {
|
switch (dsp->sb_command) {
|
||||||
case 0x01: /* ???? */
|
case 0x01: /* ???? */
|
||||||
if (dsp->sb_type >= SB16)
|
if (dsp->sb_type >= SB16)
|
||||||
|
Reference in New Issue
Block a user