YM2608: implement RAM for YM2608-LLE

This commit is contained in:
tildearrow 2025-04-30 05:01:56 -05:00
parent 4dd0869ae8
commit c601e0e4f6

View file

@ -661,10 +661,17 @@ void DivPlatformYM2608::acquire_lle(short** buf, size_t len) {
adMemAddr|=newAddr; adMemAddr|=newAddr;
} }
if (memConfig&1) {
if (fm_lle.o_romcs==0) { if (fm_lle.o_romcs==0) {
fm_lle.input.dm=adpcmBMem[adMemAddr&0x3ffff]; fm_lle.input.dm=adpcmBMem[adMemAddr&0x3ffff];
fm_lle.input.dt0=fm_lle.input.dm&1; fm_lle.input.dt0=fm_lle.input.dm&1;
} }
} else {
if (fm_lle.o_mden==1) {
fm_lle.input.dm=adpcmBMem[adMemAddr&0x3ffff];
fm_lle.input.dt0=fm_lle.input.dm&1;
}
}
cas=fm_lle.o_cas; cas=fm_lle.o_cas;
ras=fm_lle.o_ras; ras=fm_lle.o_ras;