YM2612: prioritize urgentWrite() on hard reset

This commit is contained in:
tildearrow 2023-07-30 14:53:26 -05:00
parent 9420bbe058
commit 4c13fe08d2

View file

@ -109,7 +109,8 @@ class DivPlatformFMBase: public DivDispatch {
if (!skipRegisterWrites && !flushFirst) {
if (writes.empty()) {
writes.push_back(QueuedWrite(a,v));
} else if (writes.size()>16 || writes.front().addrOrVal) {
} else if ((writes.size()>16 && writes.front().addr!=0xf0) || writes.front().addrOrVal) {
// $f0 is used by OPN hard reset
writes.push_back(QueuedWrite(a,v));
} else {
writes.push_front(QueuedWrite(a,v));