32x: some accuracy improvements

This commit is contained in:
notaz 2013-08-05 03:58:27 +03:00
parent 34280f9b42
commit 4d5dfee861
4 changed files with 20 additions and 16 deletions

View file

@ -31,7 +31,7 @@ void p32x_pwm_ctl_changed(void)
static void do_pwm_irq(unsigned int m68k_cycles)
{
Pico32x.sh2irqs |= P32XI_PWM;
p32x_update_irls(NULL);
p32x_update_irls(NULL, m68k_cycles);
if (Pico32x.regs[0x30 / 2] & P32XP_RTP) {
p32x_event_schedule(m68k_cycles, P32X_EVENT_PWM, pwm_cycles / 3 + 1);