Mercurial > repos > blastem
diff blastcpm.c @ 1931:374a5ae694e8 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 18 Apr 2020 11:42:53 -0700 |
parents | 0a26f3657295 |
children |
line wrap: on
line diff
--- a/blastcpm.c Thu Apr 18 22:06:47 2019 -0700 +++ b/blastcpm.c Sat Apr 18 11:42:53 2020 -0700 @@ -5,7 +5,7 @@ #include <time.h> #include <sys/select.h> -#ifdef USE_NATIVE +#ifndef NEW_CORE #include "z80_to_x86.h" #else #include "z80.h" @@ -19,7 +19,7 @@ #define OS_RESET 0xE403 int headless = 1; -#ifdef USE_NATIVE +#ifndef NEW_CORE void z80_next_int_pulse(z80_context * context) { context->int_pulse_start = context->int_pulse_end = CYCLE_NEVER; @@ -68,7 +68,7 @@ { time_t duration = time(NULL) - start; z80_context *z80 = context; -#ifdef USE_NATIVE +#ifndef NEW_CORE total_cycles += context->current_cycle; #else total_cycles += z80->cycles; @@ -124,7 +124,7 @@ for(;;) { z80_run(context, 1000000); -#ifdef USE_NATIVE +#ifndef NEW_CORE total_cycles += context->current_cycle; context->current_cycle = 0; #else