# HG changeset patch # User Michael Pavone # Date 1431915281 25200 # Node ID 1c2020d3e2758e2ecbef0967009b0a3df127d056 # Parent e29bc2918f69f3b59cd90227e28712670099a1cb Call z80_handle_deferred after generating an insruction handler so that instructions like rst work correctly diff -r e29bc2918f69 -r 1c2020d3e275 z80_to_x86.c --- a/z80_to_x86.c Sun May 17 15:43:20 2015 -0700 +++ b/z80_to_x86.c Sun May 17 19:14:41 2015 -0700 @@ -23,6 +23,7 @@ #endif uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst); +void z80_handle_deferred(z80_context * context); uint8_t z80_size(z80inst * inst) { @@ -1653,6 +1654,7 @@ add_ir(code, after - codebuf, opts->gen.scratch1, SZ_W); call(code, opts->native_addr); jmp_r(code, opts->gen.scratch1); + z80_handle_deferred(context); } return context->interp_code[opcode]; }