summaryrefslogtreecommitdiffstats
path: root/src/emu/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu.h')
-rw-r--r--src/emu/cpu.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/emu/cpu.h b/src/emu/cpu.h
index 43ccf00..4867a8a 100644
--- a/src/emu/cpu.h
+++ b/src/emu/cpu.h
@@ -14,14 +14,23 @@ enum {
void trap(int num);
-/* program counter */
-extern uint32_t PC;
+/* stack pointer */
+extern uint32_t SP;
+
+/* base pointer */
+extern uint32_t BP;
+
+/* return value */
+extern uint32_t RV;
+
+/* instruction pointer */
+extern uint32_t IP;
/* status bits */
extern bool N, Z;
-/* 32 general purpose registers */
-extern uint32_t GPR[32];
+/* general purpose registers */
+extern uint32_t *GPR;
/* main cpu execution function */
void execute(uint32_t IR);