diff options
author | 2025-01-31 13:01:50 +0100 | |
---|---|---|
committer | 2025-01-31 13:01:50 +0100 | |
commit | 659471456ae6d140ef9f86a15a0494ea0021fe51 (patch) | |
tree | 910210fd73734c632b09297a59c73bbeeba8aaf1 /3rdparty | |
parent | 2eb734e545d3666ac7f7d7111aed6de6d31f9263 (diff) |
ymfm_opn: writes to 0xa7/0xaf also go to latch
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/ymfm/src/ymfm_opn.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/3rdparty/ymfm/src/ymfm_opn.cpp b/3rdparty/ymfm/src/ymfm_opn.cpp index 60469e1c0d7..3b677433644 100644 --- a/3rdparty/ymfm/src/ymfm_opn.cpp +++ b/3rdparty/ymfm/src/ymfm_opn.cpp @@ -146,14 +146,11 @@ bool opn_registers_base<IsOpnA>::write(uint16_t index, uint8_t data, uint32_t &c // borrow unused registers 0xb8-bf/0x1b8-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) + // writes to the upper half go to shared 6-bit latch if (bitfield(index, 2)) m_regdata[latchindex] = data & 0x3f; |