mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
YM2612: prioritize urgentWrite() on hard reset
This commit is contained in:
parent
9420bbe058
commit
4c13fe08d2
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue