Mercurial > repos > blastem
comparison m68k_core.h @ 1427:4e5797b3935a
WIP - New savestate format
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Aug 2017 00:06:36 -0700 |
parents | df6af7187b36 |
children | 2455662378ed 8b2ef428d1aa |
comparison
equal
deleted
inserted
replaced
1426:957325c990d5 | 1427:4e5797b3935a |
---|---|
6 #ifndef M68K_CORE_H_ | 6 #ifndef M68K_CORE_H_ |
7 #define M68K_CORE_H_ | 7 #define M68K_CORE_H_ |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include "backend.h" | 10 #include "backend.h" |
11 #include "serialize.h" | |
11 //#include "68kinst.h" | 12 //#include "68kinst.h" |
12 struct m68kinst; | 13 struct m68kinst; |
13 | 14 |
14 #define NUM_MEM_AREAS 8 | 15 #define NUM_MEM_AREAS 8 |
15 #define NATIVE_MAP_CHUNKS (64*1024) | 16 #define NATIVE_MAP_CHUNKS (64*1024) |
114 m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context); | 115 m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context); |
115 uint32_t get_instruction_start(m68k_options *opts, uint32_t address); | 116 uint32_t get_instruction_start(m68k_options *opts, uint32_t address); |
116 uint16_t m68k_get_ir(m68k_context *context); | 117 uint16_t m68k_get_ir(m68k_context *context); |
117 void m68k_print_regs(m68k_context * context); | 118 void m68k_print_regs(m68k_context * context); |
118 void m68k_invalidate_code_range(m68k_context *context, uint32_t start, uint32_t end); | 119 void m68k_invalidate_code_range(m68k_context *context, uint32_t start, uint32_t end); |
120 void m68k_serialize(m68k_context *context, uint32_t pc, serialize_buffer *buf); | |
121 void m68k_deserialize(deserialize_buffer *buf, void *vcontext); | |
119 | 122 |
120 #endif //M68K_CORE_H_ | 123 #endif //M68K_CORE_H_ |
121 | 124 |