Mercurial > repos > blastem
diff m68k_core_x86.c @ 1026:7267bc1ab547
Fix bug in 68K movep.l when the destination is a register mapped to a host register
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 10 May 2016 08:59:17 -0700 |
parents | 784bc1e45e80 |
children | 2ec5e6eaf81d |
line wrap: on
line diff
--- a/m68k_core_x86.c Fri May 06 19:19:42 2016 -0700 +++ b/m68k_core_x86.c Tue May 10 08:59:17 2016 -0700 @@ -949,6 +949,7 @@ add_ir(code, 2, opts->gen.scratch1, SZ_D); push_r(code, opts->gen.scratch1); call(code, opts->read_8); + movzx_rr(code, opts->gen.scratch1, opts->gen.scratch1, SZ_B, SZ_W); shl_ir(code, 16, opts->gen.scratch1, SZ_D); or_rr(code, opts->gen.scratch1, reg, SZ_D); } else {