From da5fc8baa10a2af935a539f1b52e1d3f670f1fc8 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 22 Oct 2015 19:10:31 -0700 Subject: Decode operand for TAS --- 68kinst.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '68kinst.c') diff --git a/68kinst.c b/68kinst.c index 893617b..64aa5df 100644 --- a/68kinst.c +++ b/68kinst.c @@ -862,6 +862,12 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address) } else { if (size == OPSIZE_INVALID) { decoded->op = M68K_TAS; + decoded->extra.size = OPSIZE_BYTE; + istream = m68k_decode_op(istream, decoded->extra.size, &(decoded->dst)); + if (!istream) { + decoded->op = M68K_INVALID; + break; + } } else { decoded->op = M68K_TST; decoded->extra.size = size; -- cgit v1.2.3