about summary refs log tree commit diff stats
path: root/cpp/020run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 20:37:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 20:39:19 -0700
commita767dbd3338af1d3cc69e3c200341fff8e08fc4b (patch)
tree24aaf801e9e94af6718fe74499b7ec0a64ba5c58 /cpp/020run
parentceefc4d45ced8b0913f35657d68667de884eddf9 (diff)
downloadmu-a767dbd3338af1d3cc69e3c200341fff8e08fc4b.tar.gz
1176
Diffstat (limited to 'cpp/020run')
-rw-r--r--cpp/020run4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/020run b/cpp/020run
index 1ac4ce57..738545ee 100644
--- a/cpp/020run
+++ b/cpp/020run
@@ -53,8 +53,8 @@ void run_current_routine()
   {
     // Running One Instruction.
     size_t& pc = current_step_index();
-    if (current_instruction().is_label) { ++pc; continue; }
-    trace("run") << "instruction " << current_recipe_name() << '/' << pc;
+    if (current_instruction().is_label) { ++current_step_index(); continue; }
+    trace("run") << "instruction " << current_recipe_name() << '/' << current_step_index();
 //?     cout << "operation " << current_instruction().operation << '\n'; //? 3
     switch (current_instruction().operation) {
       // Primitive Recipe Implementations