From 44e842530b2f548c95b71bb8796c863fd0a8045f Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 11 Nov 2024 04:04:04 -0500 Subject: [PATCH] VGM export: fix bugs in issue #2226 - wrong byte in PCM RAM write - MSM6258 reset being MSM6295 --- src/engine/vgmOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/vgmOps.cpp b/src/engine/vgmOps.cpp index 5ac9d5086..e16af0cec 100644 --- a/src/engine/vgmOps.cpp +++ b/src/engine/vgmOps.cpp @@ -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);