Mercurial > repos > blastem
changeset 212:e657a99b5abf
Fixed up trans for changes to translate_m68k_stream, but still need to deal with missing callbacks.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 16 Apr 2013 09:38:30 -0700 |
parents | 464513050c85 |
children | 4d4559b04c59 |
files | trans.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }