Skip to content

Commit 078322d

Browse files
committed
ymfm_opn: OPNA does not have 4 latches
1 parent d319a3a commit 078322d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

3rdparty/ymfm/src/ymfm_opn.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,13 @@ bool opn_registers_base<IsOpnA>::write(uint16_t index, uint8_t data, uint32_t &c
143143
assert(index < REGISTERS);
144144

145145
// writes in the 0xa0-af/0x1a0-af region are handled as latched pairs
146-
// borrow unused registers 0xb8-bf/0x1b8-bf as temporary holding locations
146+
// borrow unused registers 0xb8-bf as temporary holding locations
147147
if ((index & 0xf0) == 0xa0)
148148
{
149149
if (bitfield(index, 0, 2) == 3)
150150
return false;
151151

152152
uint32_t latchindex = 0xb8 | bitfield(index, 3);
153-
if (IsOpnA)
154-
latchindex |= index & 0x100;
155153

156154
// writes to the upper half just latch (only low 6 bits matter)
157155
if (bitfield(index, 2))

0 commit comments

Comments
 (0)