Fix X1-010 VGM logging

Register/RAM offset is Big endian
This commit is contained in:
cam900 2022-03-12 10:22:21 +09:00
parent 07d15643c2
commit 155e602e61

View file

@ -157,7 +157,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
case DIV_SYSTEM_X1_010: case DIV_SYSTEM_X1_010:
for (int i=0; i<16; i++) { for (int i=0; i<16; i++) {
w->writeC(0xc8); w->writeC(0xc8);
w->writeS(baseAddr2S+(i<<3)); w->writeS_BE(baseAddr2S+(i<<3));
w->writeC(0); w->writeC(0);
} }
break; break;
@ -404,7 +404,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
break; break;
case DIV_SYSTEM_X1_010: case DIV_SYSTEM_X1_010:
w->writeC(0xc8); w->writeC(0xc8);
w->writeS(baseAddr2S|(write.addr&0x1fff)); w->writeS_BE(baseAddr2S|(write.addr&0x1fff));
w->writeC(write.val); w->writeC(write.val);
break; break;
case DIV_SYSTEM_YM2610: case DIV_SYSTEM_YM2610: