PCjr: Correctly implement wait states, fixes #3140.

This commit is contained in:
OBattler
2025-07-10 02:34:26 +02:00
parent 7170592d14
commit 44fd79b78d
8 changed files with 34 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ gameport_write(UNUSED(uint16_t addr), UNUSED(uint8_t val), void *priv)
/* Notify the interface. */
joystick->intf->write(joystick->dat);
cycles -= ISA_CYCLES(8);
cycles -= ISA_CYCLES((8 << is_pcjr));
}
static uint8_t
@@ -268,7 +268,7 @@ gameport_read(UNUSED(uint16_t addr), void *priv)
/* Merge axis state with button state. */
uint8_t ret = joystick->state | joystick->intf->read(joystick->dat);
cycles -= ISA_CYCLES(8);
cycles -= ISA_CYCLES((8 << is_pcjr));
return ret;
}