summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-04 22:51:01 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-04 22:51:01 -0800
commitdc1db1cf80f9a8b4067f9122527884e2f47e3a6e (patch)
tree2fe80b216f6cd225887f4d67db395b32cb2c672c /68kinst.c
parent14093203cf4309b4628cf426f4dd187ce1750d03 (diff)
Small fix for bit instructions
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/68kinst.c b/68kinst.c
index 7a66d83..a767e09 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -727,10 +727,12 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
decoded->variant = VAR_WORD;
immed = *(++istream);
immed = sign_extend16(immed);
+#ifdef M68020
} else if (immed == 0xFF) {
decoded->variant = VAR_LONG;
immed = *(++istream) << 16;
immed |= *(++istream);
+#endif
} else {
decoded->variant = VAR_BYTE;
immed = sign_extend8(immed);