diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-03-11 09:44:47 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-03-11 09:44:47 -0700 |
commit | 4d15ffc63362410563a49481faf9652c138945ac (patch) | |
tree | 2cb5f46c233fd33029848719e456193850d8848f /backend.h | |
parent | f0a88e3789cfff8dabb5a13d4e17efdcc2ded309 (diff) |
Split gen_mem_fun out of m68k_core_x86 and make it more generic so it can be used by the Z80 core
Diffstat (limited to 'backend.h')
-rw-r--r-- | backend.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -56,7 +56,15 @@ typedef struct { code_ptr load_context; code_ptr handle_cycle_limit; code_ptr handle_cycle_limit_int; - uint8_t context_reg; + code_ptr handle_code_write; + uint32_t address_mask; + uint32_t max_address; + uint32_t bus_cycles; + int32_t mem_ptr_off; + int32_t ram_flags_off; + uint8_t address_size; + uint8_t byte_swap; + uint8_t context_reg; uint8_t cycles; uint8_t limit; uint8_t scratch1; @@ -100,5 +108,7 @@ void cycles(cpu_options *opts, uint32_t num); void check_cycles_int(cpu_options *opts, uint32_t address); void check_cycles(cpu_options * opts); +code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type); + #endif //BACKEND_H_ |