From de0a7e84726b5dfb372597d02862bdee75644d85 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 Jun 2015 11:13:44 -0700 Subject: 1540 --- 078run_interactive.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/078run_interactive.cc b/078run_interactive.cc index 4ac62793..95a40533 100644 --- a/078run_interactive.cc +++ b/078run_interactive.cc @@ -16,10 +16,11 @@ case RUN_INTERACTIVE: { :(code) // manual tests: -// just an integer prints value of that location in memory +// empty string (excluding whitespace and comments) does nothing +// ctrl-d +// just an integer (excluding whitespace and comments) prints value of that location in memory // instruction executes // backspace at start begins new attempt -// ctrl-d working void run_interactive(long long int address) { //? tb_shutdown(); //? 1 long long int size = Memory[address]; @@ -36,7 +37,6 @@ void run_interactive(long long int address) { assert(Memory[address+size] == 10); // skip the newline if (Recipe_number.find("interactive") == Recipe_number.end()) Recipe_number["interactive"] = Next_recipe_number++; - // manual test: number followed by whitespace or comments string command = trim(strip_comments(tmp.str())); if (command.empty()) { ++current_step_index(); -- cgit 1.4.1-2-gfad0