From 155e602e61c57fa4e25f64bdcaecb78097740faf Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 12 Mar 2022 10:22:21 +0900 Subject: [PATCH] Fix X1-010 VGM logging Register/RAM offset is Big endian --- 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 069d5a2ef..2518b9faa 100644 --- a/src/engine/vgmOps.cpp +++ b/src/engine/vgmOps.cpp @@ -157,7 +157,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write case DIV_SYSTEM_X1_010: for (int i=0; i<16; i++) { w->writeC(0xc8); - w->writeS(baseAddr2S+(i<<3)); + w->writeS_BE(baseAddr2S+(i<<3)); w->writeC(0); } break; @@ -404,7 +404,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write break; case DIV_SYSTEM_X1_010: w->writeC(0xc8); - w->writeS(baseAddr2S|(write.addr&0x1fff)); + w->writeS_BE(baseAddr2S|(write.addr&0x1fff)); w->writeC(write.val); break; case DIV_SYSTEM_YM2610: