diff sega_mapper.h @ 2052:3748a2a8a4b7

Support Sega mapper without 'SEGA SSF' in header or ROM DB entry and implement a subset of the extended Sega mapper implemented in the Mega Everdrive when 'SEGA SSF' is present
author Michael Pavone <pavone@retrodev.com>
date Sat, 01 Jan 2022 18:54:46 -0800
parents 14a2834d010c
children b9cd3c64652d
line wrap: on
line diff
--- a/sega_mapper.h	Fri Dec 31 13:03:21 2021 -0800
+++ b/sega_mapper.h	Sat Jan 01 18:54:46 2022 -0800
@@ -8,6 +8,22 @@
 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);
+void* write_med_ram0_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram1_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram2_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram3_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram4_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram5_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram6_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram7_w(uint32_t address, void *vcontext, uint16_t value);
+void* write_med_ram0_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram1_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram2_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram3_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram4_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram5_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram6_b(uint32_t address, void *vcontext, uint8_t value);
+void* write_med_ram7_b(uint32_t address, void *vcontext, uint8_t value);
 void sega_mapper_serialize(genesis_context *gen, serialize_buffer *buf);
 void sega_mapper_deserialize(deserialize_buffer *buf, genesis_context *gen);