diff m68k_core.c @ 902:6011409ded0d

Fix a few lingering stack alignment rework bugs
author Michael Pavone <pavone@retrodev.com>
date Fri, 27 Nov 2015 13:10:02 -0800
parents a7774fc2de4b
children 771875b5f519
line wrap: on
line diff
--- a/m68k_core.c	Fri Nov 27 10:48:13 2015 -0800
+++ b/m68k_core.c	Fri Nov 27 13:10:02 2015 -0800
@@ -893,9 +893,7 @@
 	uint8_t orig_size = get_native_inst_size(opts, address);
 	code_ptr orig_start = get_native_address(context->options, address);
 	uint32_t orig = address;
-	code_info orig_code;
-	orig_code.cur = orig_start;
-	orig_code.last = orig_start + orig_size + 5;
+	code_info orig_code = {orig_start, orig_start + orig_size + 5, 0};
 	uint16_t *after, *inst = get_native_pointer(address, (void **)context->mem_pointers, &opts->gen);
 	m68kinst instbuf;
 	after = m68k_decode(inst, &instbuf, orig);