From f48ea913302343c313d271d77b7f0034265cb676 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 5 Nov 2016 21:41:23 -0700 Subject: Fix Jaguar video interrupt cycle calculation --- jaguar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jaguar.c') diff --git a/jaguar.c b/jaguar.c index c734c3e..350d2dc 100644 --- a/jaguar.c +++ b/jaguar.c @@ -145,9 +145,10 @@ void rom0_write_16(uint32_t address, jaguar_context *system, uint16_t value) system->memcon2 = value; break; case 0xE0: - printf("INT1 write: %X\n", value); system->cpu_int_control = value & 0x1F; system->video->cpu_int_pending &= ~(value >> 8); + printf("INT1 write: %X @ %d - int_pending: %X, int_control: %X\n", value, system->m68k->current_cycle, system->video->cpu_int_pending, system->cpu_int_control); + jag_update_m68k_int(system); //TODO: apply mask to int pending fields on other components once they are implemented break; case 0xE2: -- cgit v1.2.3