summaryrefslogtreecommitdiff
path: root/68kinst.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-24 02:19:48 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-24 02:19:48 -0700
commit508a9aedf03d887dcc00a8c53caf8cef1ada2937 (patch)
tree8d0eae4e522d3ac51a09bd477624ec4155836368 /68kinst.c
parent6c2b3708efcbd900c29422510cfdc62787d3c32d (diff)
Half assed, prefetch based open bus value emulation. Gets BlastEm up to 119/122 in VDP FIFO Testing
Diffstat (limited to '68kinst.c')
-rw-r--r--68kinst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/68kinst.c b/68kinst.c
index 64aa5df..b1a2f37 100644
--- a/68kinst.c
+++ b/68kinst.c
@@ -1546,8 +1546,10 @@ uint16_t * m68k_decode(uint16_t * istream, m68kinst * decoded, uint32_t address)
}
if (decoded->op == M68K_INVALID) {
decoded->src.params.immed = *start;
+ decoded->bytes = 2;
return start + 1;
}
+ decoded->bytes = 2 * (istream + 1 - start);
return istream+1;
}