Added SCSP DSP registers read-back, fixes booting in Tunnel B1 / Finalist

This commit is contained in:
Angelo Salese 2013-01-24 03:21:42 +00:00
parent 355103d609
commit cccdbaecba

View file

@ -997,6 +997,17 @@ static unsigned short SCSP_r16(scsp_state *scsp, address_space &space, unsigned
}
else if(addr<0x700)
v=scsp->RINGBUF[(addr-0x600)/2];
else
{
//DSP
if(addr<0x780) //COEF
v= *((unsigned short *) (scsp->DSP.COEF+(addr-0x700)/2));
else if(addr<0x800)
v= *((unsigned short *) (scsp->DSP.MADRS+(addr-0x780)/2));
else if(addr<0xC00)
v= *((unsigned short *) (scsp->DSP.MPRO+(addr-0x800)/2));
}
return v;
}