Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
2576:c9bfed9156dc | 2577:5f725429d08f |
---|---|
44 | 44 |
45 #ifdef NEW_CORE | 45 #ifdef NEW_CORE |
46 #define Z80_CYCLE cycles | 46 #define Z80_CYCLE cycles |
47 #define Z80_OPTS opts | 47 #define Z80_OPTS opts |
48 #define z80_handle_code_write(...) | 48 #define z80_handle_code_write(...) |
49 #define int_num int_priority | |
49 #else | 50 #else |
50 #define Z80_CYCLE current_cycle | 51 #define Z80_CYCLE current_cycle |
51 #define Z80_OPTS options | 52 #define Z80_OPTS options |
52 #endif | 53 #endif |
53 | 54 |
696 free(save_path); | 697 free(save_path); |
697 } else if(gen->header.save_state) { | 698 } else if(gen->header.save_state) { |
698 context->sync_cycle = context->cycles + 1; | 699 context->sync_cycle = context->cycles + 1; |
699 } | 700 } |
700 } | 701 } |
702 #ifdef NEW_CORE | |
703 if (context->target_cycle == context->cycles) { | |
704 context->target_cycle++; | |
705 } | |
706 #endif | |
701 return context; | 707 return context; |
702 } | 708 } |
703 | 709 |
704 static void sync_sound_pico(genesis_context * gen, uint32_t target) | 710 static void sync_sound_pico(genesis_context * gen, uint32_t target) |
705 { | 711 { |