Mercurial > repos > blastem
comparison blastem.c @ 266:376df762ddf5
Fix some more retranslation bugs in the Z80 core
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 01 May 2013 23:12:29 -0700 |
parents | c6d12878ea93 |
children | 6c2d7e003a55 |
comparison
equal
deleted
inserted
replaced
265:c6d12878ea93 | 266:376df762ddf5 |
---|---|
149 while (z_context->current_cycle < z_context->sync_cycle) { | 149 while (z_context->current_cycle < z_context->sync_cycle) { |
150 if (z_context->iff1 && z_context->current_cycle < ZVINT_CYCLE) { | 150 if (z_context->iff1 && z_context->current_cycle < ZVINT_CYCLE) { |
151 z_context->int_cycle = ZVINT_CYCLE; | 151 z_context->int_cycle = ZVINT_CYCLE; |
152 } | 152 } |
153 z_context->target_cycle = z_context->sync_cycle < z_context->int_cycle ? z_context->sync_cycle : z_context->int_cycle; | 153 z_context->target_cycle = z_context->sync_cycle < z_context->int_cycle ? z_context->sync_cycle : z_context->int_cycle; |
154 //printf("Running Z80 from cycle %d to cycle %d. Native PC: %p\n", z_context->current_cycle, z_context->sync_cycle, z_context->native_pc); | |
154 z80_run(z_context); | 155 z80_run(z_context); |
156 //printf("Z80 ran to cycle %d\n", z_context->current_cycle); | |
155 } | 157 } |
156 } | 158 } |
157 if (mclks >= MCLKS_PER_FRAME) { | 159 if (mclks >= MCLKS_PER_FRAME) { |
158 //printf("reached frame end | 68K Cycles: %d, MCLK Cycles: %d\n", context->current_cycle, mclks); | 160 //printf("reached frame end | 68K Cycles: %d, MCLK Cycles: %d\n", context->current_cycle, mclks); |
159 vdp_run_context(v_context, MCLKS_PER_FRAME); | 161 vdp_run_context(v_context, MCLKS_PER_FRAME); |