diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-08-13 17:25:09 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-08-13 17:25:09 -0400 |
commit | 7e57608dff1e768d2ee5d6b6a28a319865530ed0 (patch) | |
tree | 26a0f3795c29f8fd9e55cf63bcac278ddf55302a /opcode.h | |
parent | a9860417f53216a2f3b0b490afec46ab5db70181 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ }; |