comparison trans.c @ 569:9b7fcf748be0

Rename x86_68k_options and m68k_to_x86.h to m68k_options and m68k_core.h respectively
author Michael Pavone <pavone@retrodev.com>
date Sun, 02 Mar 2014 15:25:52 -0800
parents 8e395210f50f
children 76bba9ffe351
comparison
equal deleted inserted replaced
568:19e517735215 569:9b7fcf748be0
2 Copyright 2013 Michael Pavone 2 Copyright 2013 Michael Pavone
3 This file is part of BlastEm. 3 This file is part of BlastEm.
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
5 */ 5 */
6 #include "68kinst.h" 6 #include "68kinst.h"
7 #include "m68k_to_x86.h" 7 #include "m68k_core.h"
8 #include "mem.h" 8 #include "mem.h"
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 #include <string.h> 11 #include <string.h>
12 12
22 { 22 {
23 long filesize; 23 long filesize;
24 unsigned short *filebuf; 24 unsigned short *filebuf;
25 char disbuf[1024]; 25 char disbuf[1024];
26 unsigned short * cur; 26 unsigned short * cur;
27 x86_68k_options opts; 27 m68k_options opts;
28 m68k_context context; 28 m68k_context context;
29 FILE * f = fopen(argv[1], "rb"); 29 FILE * f = fopen(argv[1], "rb");
30 fseek(f, 0, SEEK_END); 30 fseek(f, 0, SEEK_END);
31 filesize = ftell(f); 31 filesize = ftell(f);
32 fseek(f, 0, SEEK_SET); 32 fseek(f, 0, SEEK_SET);