Mercurial > repos > blastem
comparison m68k_core.h @ 2216:4e27c36f947c
Add disassemble command to debugger
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 30 Aug 2022 18:42:45 -0700 |
parents | 8554751f17b5 |
children | 0111c8344477 |
comparison
equal
deleted
inserted
replaced
2215:a8af8d898a7c | 2216:4e27c36f947c |
---|---|
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 "serialize.h" |
12 //#include "68kinst.h" | 12 //#include "68kinst.h" |
13 struct m68kinst; | 13 typedef struct m68kinst m68kinst; |
14 | 14 |
15 #define NUM_MEM_AREAS 10 | 15 #define NUM_MEM_AREAS 10 |
16 #define NATIVE_MAP_CHUNKS (64*1024) | 16 #define NATIVE_MAP_CHUNKS (64*1024) |
17 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)) | 17 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)) |
18 #define MAX_NATIVE_SIZE 255 | 18 #define MAX_NATIVE_SIZE 255 |
120 void m68k_print_regs(m68k_context * context); | 120 void m68k_print_regs(m68k_context * context); |
121 void m68k_invalidate_code_range(m68k_context *context, uint32_t start, uint32_t end); | 121 void m68k_invalidate_code_range(m68k_context *context, uint32_t start, uint32_t end); |
122 void m68k_serialize(m68k_context *context, uint32_t pc, serialize_buffer *buf); | 122 void m68k_serialize(m68k_context *context, uint32_t pc, serialize_buffer *buf); |
123 void m68k_deserialize(deserialize_buffer *buf, void *vcontext); | 123 void m68k_deserialize(deserialize_buffer *buf, void *vcontext); |
124 uint16_t m68k_instruction_fetch(uint32_t address, void *vcontext); | 124 uint16_t m68k_instruction_fetch(uint32_t address, void *vcontext); |
125 uint8_t m68k_is_terminal(m68kinst * inst); | |
125 | 126 |
126 #endif //M68K_CORE_H_ | 127 #endif //M68K_CORE_H_ |
127 | 128 |