summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
commit3097e34b570734cb9542c00c4a4395b54eaa0d58 (patch)
tree2b7a3b418095f7375881101236530f6400e36bfd /opcode.h
parent9ed46f16faad3300876c3ab40aab1660ef8c4a08 (diff)
Make the registers single 64 bit uints, and convert
all the value getting, and setting into macros. This is to make the codebase cleaner.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcode.h b/opcode.h
index c36daf8..833bfe5 100644
--- a/opcode.h
+++ b/opcode.h
@@ -29,10 +29,10 @@ union reg {
struct sux {
union reg ps; /* The processor status register. */
- uint64_t a[8], b[8], y[8], x[8]; /* Registers A, B, X, and Y. */
- uint64_t pc[8]; /* Program counter. */
- uint16_t sp[8]; /* Stack pointer. */
- uint16_t stk_st[8]; /* Starting address of each threads stack. */
+ uint64_t a, b, y, x; /* Registers A, B, X, and Y. */
+ uint64_t pc; /* Program counter. */
+ uint16_t sp; /* Stack pointer. */
+ uint16_t stk_st; /* Starting address of each threads stack. */
uint8_t crt; /* Current running threads. */
};