Commit f5e2268
committed
Fix ym2610 reentrant write to port A
The logic to allow IRQ and common code to write to YM2610 port A relies
on an intermediate byte in RAM to store the current register that is
being written to.
There was a bug in the logic in function ym2610_restore_context_port_a
where we always restore a context, even if no write was being in
progress which ended up configuring the YM2610 to write to register
0xff, which is invalid.1 parent 03a5d24 commit f5e2268
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| 127 | + | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
0 commit comments