From 078322da1681d717227004565b36469939c597bc Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 31 Jan 2025 13:35:57 +0100 Subject: [PATCH] ymfm_opn: OPNA does not have 4 latches --- 3rdparty/ymfm/src/ymfm_opn.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/3rdparty/ymfm/src/ymfm_opn.cpp b/3rdparty/ymfm/src/ymfm_opn.cpp index 60469e1c0d7..9a8f5e99feb 100644 --- a/3rdparty/ymfm/src/ymfm_opn.cpp +++ b/3rdparty/ymfm/src/ymfm_opn.cpp @@ -143,15 +143,13 @@ bool opn_registers_base::write(uint16_t index, uint8_t data, uint32_t &c assert(index < REGISTERS); // writes in the 0xa0-af/0x1a0-af region are handled as latched pairs - // borrow unused registers 0xb8-bf/0x1b8-bf as temporary holding locations + // borrow unused registers 0xb8-bf as temporary holding locations if ((index & 0xf0) == 0xa0) { if (bitfield(index, 0, 2) == 3) return false; uint32_t latchindex = 0xb8 | bitfield(index, 3); - if (IsOpnA) - latchindex |= index & 0x100; // writes to the upper half just latch (only low 6 bits matter) if (bitfield(index, 2))