Mercurial > repos > blastem
comparison m68k_core_x86.c @ 601:f0061e3d2ad9
Fix a few bugs introduced in the Z80 core from the adjustments to fit with the code gen refactor
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 26 Dec 2014 15:45:31 -0800 |
parents | 9853bcce4729 |
children | 49d9928353be |
comparison
equal
deleted
inserted
replaced
600:a9dcaacdc0c5 | 601:f0061e3d2ad9 |
---|---|
2058 #ifdef X86_32 | 2058 #ifdef X86_32 |
2059 push_r(code, RDI); | 2059 push_r(code, RDI); |
2060 #endif | 2060 #endif |
2061 call(code, (code_ptr)exit); | 2061 call(code, (code_ptr)exit); |
2062 } | 2062 } |
2063 | |
2064 void check_code_prologue(code_info *code) | |
2065 { | |
2066 check_alloc_code(code, MAX_INST_LEN*4); | |
2067 }; | |
2068 | 2063 |
2069 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst) | 2064 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst) |
2070 { | 2065 { |
2071 if (next_inst == old_end && next_inst - code->cur < 2) { | 2066 if (next_inst == old_end && next_inst - code->cur < 2) { |
2072 while (code->cur < old_end) { | 2067 while (code->cur < old_end) { |