about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-20 23:41:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-20 23:41:28 -0700
commit049fa287d65842888934bee99ee72f1a24a93215 (patch)
treea8180f75c6214c97562ab326574cc6d437acac20
parent5c7ed3d66a2a1595ae5b725f6826f55d8b83b83d (diff)
downloadmu-049fa287d65842888934bee99ee72f1a24a93215.tar.gz
1824
-rw-r--r--020run.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/020run.cc b/020run.cc
index 8cc76614..e5040645 100644
--- a/020run.cc
+++ b/020run.cc
@@ -61,7 +61,8 @@ void run_current_routine()
     // Running One Instruction
     if (current_instruction().is_label) { ++current_step_index(); continue; }
     trace(Initial_callstack_depth+Callstack_depth, "run") << current_instruction().to_string();
-    assert(Memory[0] == 0);
+    if (Memory[0] != 0)
+      raise << "something wrote to location 0; this should never happen\n" << die();
     // Read all ingredients from memory.
     // Each ingredient loads a vector of values rather than a single value; mu
     // permits operating on reagents spanning multiple locations.