summaryrefslogtreecommitdiff
path: root/sega_mapper.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-06-23 23:16:44 -0700
committerMichael Pavone <pavone@retrodev.com>2017-06-23 23:16:44 -0700
commit9619ce0a27ca9509a9c86f156f411258a17e085f (patch)
tree33a0663dd9e54ffec6f57564135fd2dec6dcbc93 /sega_mapper.h
parented13c1993c34a296dcf9cc312e64875e5ef8c889 (diff)
Move Sega mapper implementation out of romdb.c
Diffstat (limited to 'sega_mapper.h')
-rw-r--r--sega_mapper.h11
1 files changed, 11 insertions, 0 deletions
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_