summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-28 17:58:43 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-28 17:58:43 -0800
commit1a5707d6777884cacae1f51bddd7559d6f25bae5 (patch)
treea678c6018f956762e4654be04d6c5d49d4f5d475 /68kinst.c
parent08d8620cd9bfe4a2bcaaa9156f8a46a1c0b9e659 (diff)
Fix opsize for sbcd in 68K instruction decoder. This fixes the timer bug in Strider 2
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/68kinst.c b/68kinst.c
index b9e25aa..2ca1e02 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -896,6 +896,7 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
break;
case 4:
decoded->op = M68K_SBCD;
+ decoded->extra.size = OPSIZE_BYTE;
decoded->dst.addr_mode = decoded->src.addr_mode = *istream & 0x8 ? MODE_AREG_PREDEC : MODE_REG;
decoded->src.params.regs.pri = *istream & 0x7;
decoded->dst.params.regs.pri = (*istream >> 9) & 0x7;