Mercurial > repos > blastem
comparison m68k_to_x86.c @ 211:464513050c85
Small bit of cleanup
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 16 Apr 2013 09:31:21 -0700 |
parents | 4beaad3a9a50 |
children | 4d4559b04c59 |
comparison
equal
deleted
inserted
replaced
210:4beaad3a9a50 | 211:464513050c85 |
---|---|
1 #include "gen_x86.h" | 1 #include "gen_x86.h" |
2 #include "m68k_to_x86.h" | 2 #include "m68k_to_x86.h" |
3 #include "68kinst.h" | 3 #include "68kinst.h" |
4 #include "mem.h" | 4 #include "mem.h" |
5 #include "x86_backend.h" | |
5 #include <stdio.h> | 6 #include <stdio.h> |
6 #include <stddef.h> | 7 #include <stddef.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
17 | 18 |
18 #define FLAG_N RBX | 19 #define FLAG_N RBX |
19 #define FLAG_V BH | 20 #define FLAG_V BH |
20 #define FLAG_Z RDX | 21 #define FLAG_Z RDX |
21 #define FLAG_C DH | 22 #define FLAG_C DH |
22 | |
23 typedef struct { | |
24 int32_t disp; | |
25 uint8_t mode; | |
26 uint8_t base; | |
27 uint8_t index; | |
28 uint8_t cycles; | |
29 } x86_ea; | |
30 | 23 |
31 char disasm_buf[1024]; | 24 char disasm_buf[1024]; |
32 | 25 |
33 void handle_cycle_limit_int(); | 26 void handle_cycle_limit_int(); |
34 void m68k_read_word_scratch1(); | 27 void m68k_read_word_scratch1(); |