summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-02-09 13:45:26 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-02-09 13:45:26 -0400
commit8d9190cb14f287193196f422d49dbca0809980c7 (patch)
treefd7224d362d1c80fd6b1fe9d2fab7ad397e1325f /opcode.h
parentb9fdf56717af2a9e7c9224610082bb026c86a87e (diff)
sux.{c,h}, opcode.h, disasm.c: Add code to use the new
instruction handler for reading the interrupt vectors.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/opcode.h b/opcode.h
index 5f952b3..e5fde3d 100644
--- a/opcode.h
+++ b/opcode.h
@@ -64,6 +64,9 @@ struct sux {
uint64_t bp; /* Base pointer. */
uint64_t r11, r12, r13, r14, r15; /* Registers R11-R15. */;
uint64_t clk; /* Number of clock cycles. */
+ int nmi : 1; /* NMI flag. */
+ int reset : 1; /* Reset flag. */
+ int irq : 1; /* IRQ flag. */
};
typedef struct op operand;