summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-15 23:01:32 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-15 23:01:32 -0800
commite66a7f1c8e921ea6958bee6685a81b4b319f2dbf (patch)
tree5e4bbe2bd107beeef9ebe8f20f8c0d4925ca1eb6 /68kinst.c
parentd6526708390114de0e03206170174fbe9a102383 (diff)
Implement shift instructions (asl, lsl, asr, lsr). Add flags to register printout. Fix minor bug in shift/rotate instruction decoding.
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/68kinst.c b/68kinst.c
index 845aca4..257aa0b 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -1007,7 +1007,7 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
}
decoded->extra.size = (*istream >> 6) & 0x3;
immed = (*istream >> 9) & 0x7;
- if (*istream & 0x100) {
+ if (*istream & 0x20) {
decoded->src.addr_mode = MODE_REG;
decoded->src.params.regs.pri = immed;
} else {