summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-12-01 17:40:41 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-12-02 18:10:41 -0500
commitcbad8aabbc82efbe7a49572a2da74224ae9c9f85 (patch)
treee97b1ab35208bc3e4d633f235d875fd4c69d039f /opcode.h
parentca89989d057a19b647514656d96d00ff23be9640 (diff)
Added the ability to disable the prefix byte.
Any instructions that either have a register size of 8 bits, use implied addressing, or branch can save a byte by disabling the prefix byte. It does this by checking if the first three bits are all set to 1. If true, then it will treat it as a prefix byte, otherwise, it will treat it as an opcode.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/opcode.h b/opcode.h
index d83b74c..5203fa9 100644
--- a/opcode.h
+++ b/opcode.h
@@ -97,6 +97,7 @@ struct sux;
uint8_t *addr; /* Address Space. */
uint64_t clk; /* Clock cycles. */
+uint8_t ibcount; /* Number of bytes taken up by instruction. */
struct sux {
uint64_t ps; /* The processor status register. */