comparison jaguar.c @ 1100:653558f6fa7a

Fix Jaguar video interrupt cycle calculation
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Nov 2016 21:41:23 -0700
parents faa3a4617f62
children b45d1f64060e
comparison
equal deleted inserted replaced
1099:9c62edafcf74 1100:653558f6fa7a
143 break; 143 break;
144 case 2: 144 case 2:
145 system->memcon2 = value; 145 system->memcon2 = value;
146 break; 146 break;
147 case 0xE0: 147 case 0xE0:
148 printf("INT1 write: %X\n", value);
149 system->cpu_int_control = value & 0x1F; 148 system->cpu_int_control = value & 0x1F;
150 system->video->cpu_int_pending &= ~(value >> 8); 149 system->video->cpu_int_pending &= ~(value >> 8);
150 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);
151 jag_update_m68k_int(system);
151 //TODO: apply mask to int pending fields on other components once they are implemented 152 //TODO: apply mask to int pending fields on other components once they are implemented
152 break; 153 break;
153 case 0xE2: 154 case 0xE2:
154 //no real handling of bus conflicts presently, so this doesn't really need to do anything yet 155 //no real handling of bus conflicts presently, so this doesn't really need to do anything yet
155 printf("INT2 write: %X\n", value); 156 printf("INT2 write: %X\n", value);