Mercurial > repos > blastem
diff backend.h @ 1931:374a5ae694e8 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 18 Apr 2020 11:42:53 -0700 |
parents | 8fe162bdb038 0c1491818f4b |
children |
line wrap: on
line diff
--- a/backend.h Thu Apr 18 22:06:47 2019 -0700 +++ b/backend.h Sat Apr 18 11:42:53 2020 -0700 @@ -8,7 +8,7 @@ #include <stdint.h> #include <stdio.h> -#ifdef USE_NATIVE +#ifndef NEW_CORE #include "gen.h" #else typedef uint8_t * code_ptr; @@ -54,14 +54,14 @@ typedef struct { uint32_t flags; -#ifdef USE_NATIVE +#ifndef NEW_CORE native_map_slot *native_code_map; deferred_addr *deferred; code_info code; uint8_t **ram_inst_sizes; #endif memmap_chunk const *memmap; -#ifdef USE_NATIVE +#ifndef NEW_CORE code_ptr save_context; code_ptr load_context; code_ptr handle_cycle_limit; @@ -76,7 +76,7 @@ uint32_t max_address; uint32_t bus_cycles; uint32_t clock_divider; -#ifdef USE_NATIVE +#ifndef NEW_CORE uint32_t move_pc_off; uint32_t move_pc_size; int32_t mem_ptr_off; @@ -85,7 +85,7 @@ #endif uint8_t address_size; uint8_t byte_swap; -#ifdef USE_NATIVE +#ifndef NEW_CORE int8_t context_reg; int8_t cycles; int8_t limit; @@ -95,7 +95,7 @@ #endif } cpu_options; -#ifdef USE_NATIVE +#ifndef NEW_CORE typedef uint8_t * (*native_addr_func)(void * context, uint32_t address); deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_t *dest);