Mercurial > repos > blastem
comparison m68k_to_x86.h @ 211:464513050c85
Small bit of cleanup
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 16 Apr 2013 09:31:21 -0700 |
parents | 3457dc6fd558 |
children | d9bf8e61c33c |
comparison
equal
deleted
inserted
replaced
210:4beaad3a9a50 | 211:464513050c85 |
---|---|
1 #ifndef M68K_TO_X86_H_ | 1 #ifndef M68K_TO_X86_H_ |
2 #define M68K_TO_X86_H_ | 2 #define M68K_TO_X86_H_ |
3 #include <stdint.h> | 3 #include <stdint.h> |
4 #include <stdio.h> | 4 #include <stdio.h> |
5 #include "x86_backend.h" | |
5 //#include "68kinst.h" | 6 //#include "68kinst.h" |
6 struct m68kinst; | 7 struct m68kinst; |
7 | 8 |
8 #define NUM_MEM_AREAS 4 | 9 #define NUM_MEM_AREAS 4 |
9 #define NATIVE_MAP_CHUNKS (64*1024) | 10 #define NATIVE_MAP_CHUNKS (64*1024) |
11 #define INVALID_OFFSET 0xFFFFFFFF | 12 #define INVALID_OFFSET 0xFFFFFFFF |
12 #define EXTENSION_WORD 0xFFFFFFFE | 13 #define EXTENSION_WORD 0xFFFFFFFE |
13 #define MAX_NATIVE_SIZE 255 | 14 #define MAX_NATIVE_SIZE 255 |
14 | 15 |
15 #define OPT_NATIVE_CALL_STACK 0x1 | 16 #define OPT_NATIVE_CALL_STACK 0x1 |
16 | |
17 typedef struct { | |
18 uint8_t *base; | |
19 int32_t *offsets; | |
20 } native_map_slot; | |
21 | 17 |
22 typedef struct deferred_addr { | 18 typedef struct deferred_addr { |
23 struct deferred_addr *next; | 19 struct deferred_addr *next; |
24 uint8_t *dest; | 20 uint8_t *dest; |
25 uint32_t address; | 21 uint32_t address; |