summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-17 20:00:07 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-17 20:00:07 -0800
commitcaad3a07a1d56b9f455667fef9e63e3be62454f7 (patch)
tree37bc284fc35fb0f9f59e4c3c198353de5c8c068a /68kinst.c
parentf6ebaabe9ee2703a6d12162310d058f9159ed770 (diff)
Add instruction address logging to translator and support for reading an address log to the disassembler
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 580d8a5..8ce25ba 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -448,7 +448,7 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
return start+1;
}
istream = m68k_decode_op_ex(istream, opmode, reg, decoded->extra.size, &(decoded->dst));
- if (!istream) {
+ if (!istream || decoded->dst.addr_mode == MODE_IMMEDIATE) {
decoded->op = M68K_INVALID;
return start+1;
}