about summary refs log tree commit diff stats
path: root/subx/011run.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/011run.cc')
-rw-r--r--subx/011run.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/subx/011run.cc b/subx/011run.cc
index cc3b82f6..1730c790 100644
--- a/subx/011run.cc
+++ b/subx/011run.cc
@@ -91,10 +91,12 @@ void run(const string& text_bytes) {
   if (trace_contains_errors()) return;
   load(p);
   if (trace_contains_errors()) return;
+  // convenience to keep tests concise: 'Entry' label need not be provided
+  // not allowed in real programs
   if (p.entry)
     EIP = p.entry;
   else
-    EIP = find(p, "code")->start;  // just in unit tests
+    EIP = find(p, "code")->start;
   while (EIP < End_of_program)
     run_one_instruction();
 }