summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-08-13 17:25:09 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-08-13 17:25:09 -0400
commit7e57608dff1e768d2ee5d6b6a28a319865530ed0 (patch)
tree26a0f3795c29f8fd9e55cf63bcac278ddf55302a /opcode.h
parenta9860417f53216a2f3b0b490afec46ab5db70181 (diff)
Refactored get_addr(), and all of the effective
address handling. It's now all done using several functions for each addressing mode, with the result being the effective address. I did this to make the codebase cleaner, and more readable.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.h b/opcode.h
index 1c48b55..fc2c8e6 100644
--- a/opcode.h
+++ b/opcode.h
@@ -7,7 +7,6 @@
#include "tables.h"
-#define getclk 0
#define keypoll 0
#define OPNUM 74
@@ -58,6 +57,7 @@ struct sux {
uint64_t pc; /* Program counter. */
uint16_t sp; /* Stack pointer. */
uint16_t stk_st; /* Starting address of each threads stack. */
+ uint64_t clk; /* Number of clock cycles. */
uint8_t crt; /* Current running threads. */
};