From 049fa287d65842888934bee99ee72f1a24a93215 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 20 Jul 2015 23:41:28 -0700 Subject: 1824 --- 020run.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit 1.4.1-2-gfad0