Mercurial > repos > blastem
comparison backend.h @ 582:c05fcbfe1b1a
Refactored translate_m68k so that it contains no host-cpu specific code and moved it to m68k_core.c
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 07 Mar 2014 17:42:29 -0800 |
parents | 8e395210f50f |
children | 2dde38c1744f |
comparison
equal
deleted
inserted
replaced
581:9f40aa5243c2 | 582:c05fcbfe1b1a |
---|---|
11 #include "gen.h" | 11 #include "gen.h" |
12 | 12 |
13 #define INVALID_OFFSET 0xFFFFFFFF | 13 #define INVALID_OFFSET 0xFFFFFFFF |
14 #define EXTENSION_WORD 0xFFFFFFFE | 14 #define EXTENSION_WORD 0xFFFFFFFE |
15 | 15 |
16 #if defined(X86_32) || defined(X86_64) | |
16 typedef struct { | 17 typedef struct { |
17 int32_t disp; | 18 int32_t disp; |
18 uint8_t mode; | 19 uint8_t mode; |
19 uint8_t base; | 20 uint8_t base; |
20 uint8_t index; | 21 uint8_t index; |
21 uint8_t cycles; | 22 } host_ea; |
22 } x86_ea; | 23 #else |
24 typedef struct { | |
25 int32_t disp; | |
26 uint8_t mode; | |
27 uint8_t base; | |
28 } host_ea; | |
29 #endif | |
23 | 30 |
24 typedef struct { | 31 typedef struct { |
25 uint8_t *base; | 32 uint8_t *base; |
26 int32_t *offsets; | 33 int32_t *offsets; |
27 } native_map_slot; | 34 } native_map_slot; |