From 7e57608dff1e768d2ee5d6b6a28a319865530ed0 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 13 Aug 2020 17:25:09 -0400 Subject: 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. --- opcode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcode.h') 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. */ }; -- cgit v1.2.3-13-gbd6f