From e20c4dfeab1bbfb208f5ecfcf25ca4185babe750 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Thu, 27 Dec 2012 21:19:58 -0800 Subject: Initial work on allowing dynamic branches and code in RAM plus a small fix to effective address decoding --- blastem.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index 5d5bd2f..c2823bf 100644 --- a/blastem.c +++ b/blastem.c @@ -472,8 +472,6 @@ int main(int argc, char ** argv) } } render_init(width, height); - size_t size = 1024 * 1024; - uint8_t * transbuf = alloc_code(&size); x86_68k_options opts; m68k_context context; @@ -490,14 +488,13 @@ int main(int argc, char ** argv) context.mem_pointers[1] = ram; uint32_t address; address = cart[0x68/2] << 16 | cart[0x6A/2]; - uint8_t * end = transbuf + size; - transbuf = translate_m68k_stream(transbuf, end, address, &context); + translate_m68k_stream(address, &context); address = cart[0x70/2] << 16 | cart[0x72/2]; - transbuf = translate_m68k_stream(transbuf, end, address, &context); + translate_m68k_stream(address, &context); address = cart[0x78/2] << 16 | cart[0x7A/2]; - transbuf = translate_m68k_stream(transbuf, end, address, &context); + translate_m68k_stream(address, &context); address = cart[2] << 16 | cart[3]; - translate_m68k_stream(transbuf, end, address, &context); + translate_m68k_stream(address, &context); m68k_reset(&context); return 0; } -- cgit v1.2.3