comparison blastem.c @ 846:98d7b6073163

Implement interrupt latency. Fixes Sesame Street: Counting Cafe and gives accurate results in my test ROM
author Michael Pavone <pavone@retrodev.com>
date Sat, 31 Oct 2015 22:17:50 -0700
parents 74e161fe7d39
children 213c3b5160d0
comparison
equal deleted inserted replaced
845:3a18b5f63afc 846:98d7b6073163
153 context->int_num = 4; 153 context->int_num = 4;
154 154
155 } 155 }
156 } 156 }
157 } 157 }
158 }
159 if (context->int_cycle > context->current_cycle) {
160 context->int_pending = 0;
158 } 161 }
159 /*if (context->int_cycle != old_int_cycle) { 162 /*if (context->int_cycle != old_int_cycle) {
160 printf("int cycle changed to: %d, level: %d @ %d(%d), frame: %d, vcounter: %d, hslot: %d, mask: %d, hint_counter: %d\n", context->int_cycle, context->int_num, v_context->cycles, context->current_cycle, v_context->frame, v_context->vcounter, v_context->hslot, context->status & 0x7, v_context->hint_counter); 163 printf("int cycle changed to: %d, level: %d @ %d(%d), frame: %d, vcounter: %d, hslot: %d, mask: %d, hint_counter: %d\n", context->int_cycle, context->int_num, v_context->cycles, context->current_cycle, v_context->frame, v_context->vcounter, v_context->hslot, context->status & 0x7, v_context->hint_counter);
161 old_int_cycle = context->int_cycle; 164 old_int_cycle = context->int_cycle;
162 }*/ 165 }*/