From caad3a07a1d56b9f455667fef9e63e3be62454f7 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Thu, 17 Jan 2013 20:00:07 -0800 Subject: Add instruction address logging to translator and support for reading an address log to the disassembler --- 68kinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '68kinst.c') 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; } -- cgit v1.2.3