Mercurial > repos > blastem
diff genesis.c @ 2577:5f725429d08f
WIP changes to new CPU core for rotate instructions and to get interrupts more functional
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 07 Feb 2025 08:57:24 -0800 |
parents | 3d14db924e57 |
children | 251cc75574af |
line wrap: on
line diff
--- a/genesis.c Mon Feb 03 22:28:20 2025 -0800 +++ b/genesis.c Fri Feb 07 08:57:24 2025 -0800 @@ -46,6 +46,7 @@ #define Z80_CYCLE cycles #define Z80_OPTS opts #define z80_handle_code_write(...) +#define int_num int_priority #else #define Z80_CYCLE current_cycle #define Z80_OPTS options @@ -698,6 +699,11 @@ context->sync_cycle = context->cycles + 1; } } +#ifdef NEW_CORE + if (context->target_cycle == context->cycles) { + context->target_cycle++; + } +#endif return context; }