Mercurial > repos > blastem
comparison z80_to_x86.c @ 966:f765c2fc7508
Fix crash bug in Z80 debugger introduced with stack alignment changes
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 20 Apr 2016 23:00:37 -0700 |
parents | 30efd12b1be1 |
children | 1eb616b8cbe9 |
comparison
equal
deleted
inserted
replaced
965:5257e85364ed | 966:f765c2fc7508 |
---|---|
2727 } | 2727 } |
2728 } | 2728 } |
2729 | 2729 |
2730 uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst) | 2730 uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst) |
2731 { | 2731 { |
2732 code_info code = {dst, dst+16}; | 2732 code_info code = {dst, dst+32}; |
2733 mov_ir(&code, address, context->options->gen.scratch1, SZ_W); | 2733 mov_ir(&code, address, context->options->gen.scratch1, SZ_W); |
2734 call(&code, context->bp_stub); | 2734 call(&code, context->bp_stub); |
2735 return code.cur-dst; | 2735 return code.cur-dst; |
2736 } | 2736 } |
2737 | 2737 |