diff sega_mapper.h @ 1415:f7d653bb8899

Move Sega mapper implementation out of romdb.c
author Michael Pavone <pavone@retrodev.com>
date Fri, 23 Jun 2017 23:16:44 -0700
parents
children 14a2834d010c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sega_mapper.h	Fri Jun 23 23:16:44 2017 -0700
@@ -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_