Mercurial > repos > blastem
changeset 641:66857bd2df0b
Fix decoding of movec
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 15 Oct 2014 00:26:57 -0700 |
parents | c806b96b86eb |
children | 08d0e3e7d0d8 |
files | 68kinst.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/68kinst.c Tue Oct 14 22:17:42 2014 -0700 +++ b/68kinst.c Wed Oct 15 00:26:57 2014 -0700 @@ -970,6 +970,7 @@ immed = *(++istream); reg = immed >> 12 & 0x7; opmode = immed & 0x8000 ? MODE_AREG : MODE_REG; + immed &= 0xFFF; if (immed & 0x800) { if (immed > MAX_HIGH_CR) { decoded->op = M68K_INVALID;