# HG changeset patch # User Mike Pavone # Date 1366130310 25200 # Node ID e657a99b5abfd30e17e18ec2e6a0cab807746262 # Parent 464513050c856a492c0e566745fcf6847b4de833 Fixed up trans for changes to translate_m68k_stream, but still need to deal with missing callbacks. diff -r 464513050c85 -r e657a99b5abf trans.c --- a/trans.c Tue Apr 16 09:31:21 2013 -0700 +++ b/trans.c Tue Apr 16 09:38:30 2013 -0700 @@ -9,9 +9,6 @@ long filesize; unsigned short *filebuf; char disbuf[1024]; - size_t size = 1024 * 1024; - uint8_t * transbuf = alloc_code(&size); - uint8_t *trans_cur, *end; unsigned short * cur; x86_68k_options opts; m68k_context context; @@ -33,7 +30,9 @@ context.target_cycle = 0x7FFFFFFF; //work RAM context.mem_pointers[1] = malloc(64 * 1024); - translate_m68k_stream(transbuf, transbuf + size, 0, &context); + uint32_t address; + address = filebuf[2] << 16 | filebuf[3]; + translate_m68k_stream(address, &context); m68k_reset(&context); return 0; }