Mercurial > repos > blastem
comparison sega_mapper.h @ 1444:14a2834d010c
Save/restore mapper state in native save states
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Aug 2017 18:15:00 -0700 |
parents | f7d653bb8899 |
children | 3748a2a8a4b7 |
comparison
equal
deleted
inserted
replaced
1443:93c1b056ccdd | 1444:14a2834d010c |
---|---|
1 #ifndef SEGA_MAPPER_H_ | 1 #ifndef SEGA_MAPPER_H_ |
2 #define SEGA_MAPPER_H_ | 2 #define SEGA_MAPPER_H_ |
3 #include "serialize.h" | |
3 | 4 |
4 uint16_t read_sram_w(uint32_t address, m68k_context * context); | 5 uint16_t read_sram_w(uint32_t address, m68k_context * context); |
5 uint8_t read_sram_b(uint32_t address, m68k_context * context); | 6 uint8_t read_sram_b(uint32_t address, m68k_context * context); |
6 m68k_context * write_sram_area_w(uint32_t address, m68k_context * context, uint16_t value); | 7 m68k_context * write_sram_area_w(uint32_t address, m68k_context * context, uint16_t value); |
7 m68k_context * write_sram_area_b(uint32_t address, m68k_context * context, uint8_t value); | 8 m68k_context * write_sram_area_b(uint32_t address, m68k_context * context, uint8_t value); |
8 m68k_context * write_bank_reg_w(uint32_t address, m68k_context * context, uint16_t value); | 9 m68k_context * write_bank_reg_w(uint32_t address, m68k_context * context, uint16_t value); |
9 m68k_context * write_bank_reg_b(uint32_t address, m68k_context * context, uint8_t value); | 10 m68k_context * write_bank_reg_b(uint32_t address, m68k_context * context, uint8_t value); |
11 void sega_mapper_serialize(genesis_context *gen, serialize_buffer *buf); | |
12 void sega_mapper_deserialize(deserialize_buffer *buf, genesis_context *gen); | |
10 | 13 |
11 #endif //SEGA_MAPPER_H_ | 14 #endif //SEGA_MAPPER_H_ |