summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/68kinst.c b/68kinst.c
index 8ce25ba..699f112 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -854,6 +854,10 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
decoded->src.params.immed = immed;
break;
case MOVEQ:
+ if (*istream & 0x100) {
+ decoded->op = M68K_INVALID;
+ return start+1;
+ }
decoded->op = M68K_MOVE;
decoded->variant = VAR_QUICK;
decoded->extra.size = OPSIZE_LONG;