From 22832f5e8b400f34e8690ea2a251beccb0778a78 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 23 Feb 2017 00:08:04 -0800 Subject: Minor fix to 68K instruction decoder --- 68kinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '68kinst.c') diff --git a/68kinst.c b/68kinst.c index 9a99cdd..e406872 100644 --- a/68kinst.c +++ b/68kinst.c @@ -656,7 +656,7 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address) decoded->dst.addr_mode = MODE_AREG; decoded->dst.params.regs.pri = m68k_reg_quick_field(*istream); istream = m68k_decode_op(istream, decoded->extra.size, &(decoded->src)); - if (!istream) { + if (!istream || decoded->src.addr_mode == MODE_REG) { decoded->op = M68K_INVALID; break; } -- cgit v1.2.3