32x, tentative kludge for blackthorne

This commit is contained in:
kub 2022-11-21 21:08:39 +00:00
parent eb990fd62a
commit 4ec1247d23
6 changed files with 48 additions and 33 deletions

View file

@ -816,7 +816,7 @@ static void p32x_sh2reg_write8(u32 a, u32 d, SH2 *sh2)
Pico32x.sh2_regs[0] &= ~0x80;
Pico32x.sh2_regs[0] |= d & 0x80;
if ((d ^ old) & 1)
if ((old ^ d) & 1)
p32x_pwm_schedule_sh2(sh2);
if ((old ^ d) & 2)
p32x_update_cmd_irq(sh2, 0);