summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-05-06 14:10:46 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-05-06 14:10:46 -0400
commit11c8d71babb0210d070dd6ab12a255a5fa3159a5 (patch)
treebdd895bb0f6a148445178f46cd67274ca570ca10 /opcode.h
parent9ccba5e624319becd9a85822e60b15b6355f19cd (diff)
Removed some duplicate code in the assembler, and made
the processor status register, a union now.
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 b9d1817..cd7a59b 100644
--- a/opcode.h
+++ b/opcode.h
@@ -211,7 +211,7 @@ union reg {
};
struct sux {
- uint64_t ps; /* The processor status register. */
+ 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. */