VGM export: fix bugs in issue #2226

- wrong byte in PCM RAM write
- MSM6258 reset being MSM6295
This commit is contained in:
tildearrow 2024-11-11 04:04:04 -05:00
parent 5fcf42267a
commit 44e842530b

View file

@ -553,7 +553,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
w->writeC(0xff);
break;
case DIV_SYSTEM_MSM6258:
w->writeC(0xb8); // stop
w->writeC(0xb7); // stop
w->writeC(baseAddr2|0);
w->writeC(1);
break;
@ -716,7 +716,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
case DIV_SYSTEM_NES: {
unsigned int bankAddr=bankOffset+(write.val<<14);
w->writeC(0x68);
w->writeC(0x6c);
w->writeC(0x66);
w->writeC(0x07|(isSecond?0x80:0x00));
w->writeC(bankAddr&0xff);
w->writeC((bankAddr>>8)&0xff);