From 9619ce0a27ca9509a9c86f156f411258a17e085f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 23 Jun 2017 23:16:44 -0700 Subject: Move Sega mapper implementation out of romdb.c --- sega_mapper.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sega_mapper.h (limited to 'sega_mapper.h') diff --git a/sega_mapper.h b/sega_mapper.h new file mode 100644 index 0000000..f18c285 --- /dev/null +++ b/sega_mapper.h @@ -0,0 +1,11 @@ +#ifndef SEGA_MAPPER_H_ +#define SEGA_MAPPER_H_ + +uint16_t read_sram_w(uint32_t address, m68k_context * context); +uint8_t read_sram_b(uint32_t address, m68k_context * context); +m68k_context * write_sram_area_w(uint32_t address, m68k_context * context, uint16_t value); +m68k_context * write_sram_area_b(uint32_t address, m68k_context * context, uint8_t value); +m68k_context * write_bank_reg_w(uint32_t address, m68k_context * context, uint16_t value); +m68k_context * write_bank_reg_b(uint32_t address, m68k_context * context, uint8_t value); + +#endif //SEGA_MAPPER_H_ -- cgit v1.2.3