summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-10-22 19:10:31 -0700
committerMichael Pavone <pavone@retrodev.com>2015-10-22 19:10:31 -0700
commitda5fc8baa10a2af935a539f1b52e1d3f670f1fc8 (patch)
tree5aed729db09c971f14d6c8c3f26f9d40cb3433d7 /68kinst.c
parentbc7046c222aedfcdbdb59c9ced6baebee684b057 (diff)
Decode operand for TAS
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c6
1 files changed, 6 insertions, 0 deletions
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;