diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-03 18:00:11 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-03 18:00:11 -0700 |
commit | 1066660e66fd08f608b24426abf7ad60b3a5b566 (patch) | |
tree | 49dd035198bdc59f2c489b57a0c36997c01b85c8 /020run.cc | |
parent | ae496d70be94f8ffa363ae1612aa3cbfbaca11b8 (diff) | |
download | mu-1066660e66fd08f608b24426abf7ad60b3a5b566.tar.gz |
1523
Variable 'instruction_counter' was obfuscating more than it clarified.
Diffstat (limited to '020run.cc')
-rw-r--r-- | 020run.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/020run.cc b/020run.cc index 0c91b71d..ec9c1c2b 100644 --- a/020run.cc +++ b/020run.cc @@ -69,9 +69,8 @@ void run_current_routine() for (long long int i = 0; i < SIZE(current_instruction().ingredients); ++i) { ingredients.push_back(read_memory(current_instruction().ingredients.at(i))); } - // Instructions below will write to 'products' or to 'instruction_counter'. + // Instructions below will write to 'products'. vector<vector<double> > products; - long long int instruction_counter = current_step_index(); //? cerr << "AAA 8: " << current_instruction().operation << " ^" << Recipe[current_instruction().operation].name << "$\n"; //? 1 switch (current_instruction().operation) { // Primitive Recipe Implementations @@ -89,7 +88,7 @@ void run_current_routine() for (long long int i = 0; i < SIZE(current_instruction().products); ++i) { write_memory(current_instruction().products.at(i), products.at(i)); } - current_step_index() = instruction_counter+1; + ++current_step_index(); } //? cerr << "AAA 9\n"; //? 1 stop_running_current_routine:; |