diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-03-02 14:45:36 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-03-02 14:45:36 -0800 |
commit | 16e7b59467ba17034f63834962e5d326a8facce4 (patch) | |
tree | 34c188d6f088c7985905fc69a29b4cddff88f332 /trans.c | |
parent | 21c7f3bc1537b360433c3149488c3077c7639b9b (diff) |
Refactor gen_x86 to use an interface more like gen_arm and to remove the need for the caller to decide whether an 8-bit or 32-bit displacement is needed in the rdisp functions. Update m68k_to_x86 to use the new version of the gen_x86 functions and do some minor refactoring there in the process
Diffstat (limited to 'trans.c')
-rw-r--r-- | trans.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #include "68kinst.h" @@ -43,14 +43,14 @@ int main(int argc, char ** argv) memmap[0].mask = 0xFFFFFF; memmap[0].flags = MMAP_READ; memmap[0].buffer = filebuf; - + memmap[1].start = 0xE00000; memmap[1].end = 0x1000000; memmap[1].mask = 0xFFFF; memmap[1].flags = MMAP_READ | MMAP_WRITE | MMAP_CODE; memmap[1].buffer = malloc(64 * 1024); init_x86_68k_opts(&opts, memmap, 2); - init_68k_context(&context, opts.native_code_map, &opts); + init_68k_context(&context, opts.gen.native_code_map, &opts); context.mem_pointers[0] = memmap[0].buffer; context.mem_pointers[1] = memmap[1].buffer; context.target_cycle = context.sync_cycle = 0x80000000; |