From d2ad74206a51254f874791ed3c0b62b8a742cd00 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 14 Mar 2022 02:39:10 -0500 Subject: [PATCH] fix 4-op mode for real --- src/engine/platform/opl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/opl.cpp b/src/engine/platform/opl.cpp index fe446ad23..7fe8bca92 100644 --- a/src/engine/platform/opl.cpp +++ b/src/engine/platform/opl.cpp @@ -360,7 +360,8 @@ void DivPlatformOPL::tick() { update4OpMask=false; if (oplType==3) { unsigned char opMask=chan[0].fourOp|(chan[2].fourOp<<1)|(chan[4].fourOp<<2)|(chan[6].fourOp<<3)|(chan[8].fourOp<<4)|(chan[10].fourOp<<5); - rWrite(0x104,opMask); + immWrite(0x104,opMask); + printf("updating opMask to %.2x\n",opMask); } }