about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-10 20:18:45 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-10 20:18:45 -0700
commitced962dbf8ac4ad6616c1b3573f268a83a925c8b (patch)
treeac80fbb7bcfe3af7c5abc03ee86a2ab980571710
parent0fa9ccd15ecbb22590f65d360480a9e4f3b1b9e0 (diff)
downloadmu-ced962dbf8ac4ad6616c1b3573f268a83a925c8b.tar.gz
4336
-rw-r--r--subx/010core.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/010core.cc b/subx/010core.cc
index d35472da..44419696 100644
--- a/subx/010core.cc
+++ b/subx/010core.cc
@@ -20,10 +20,10 @@ union reg {
 };
 :(before "End Globals")
 reg Reg[NUM_INT_REGISTERS] = { {0} };
-uint32_t EIP = 0;
+uint32_t EIP = 1;  // preserve null pointer
 :(before "End Reset")
 bzero(Reg, sizeof(Reg));
-EIP = 0;
+EIP = 1;  // preserve null pointer
 
 //:: simulated flag registers; just a subset that we care about