diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 17:10:43 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 17:10:43 -0700 |
commit | d241c9c41cdf2c1d0aa01d9ddb00e110ebaded97 (patch) | |
tree | b46e19b8dd613e095117455740bb4b9b8510f9d8 /cpp | |
parent | 9cf71627174aebeabe9149df454785b3ef6b92d8 (diff) | |
download | mu-d241c9c41cdf2c1d0aa01d9ddb00e110ebaded97.tar.gz |
911
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/012run | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/012run b/cpp/012run index 46a90b7f..4fdb7ebb 100644 --- a/cpp/012run +++ b/cpp/012run @@ -63,17 +63,17 @@ void run(routine rr) { //? cout << "instruction " << TOP_RECIPE.name << '/' << pc << '\n'; //? 2 trace("run") << "instruction " << TOP_RECIPE.name << '/' << pc; switch (instructions[pc].operation) { - // Primitive Recipe Implementations. - case COPY: { - trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; - vector<int> data = read_memory(instructions[pc].ingredients[0]); - write_memory(instructions[pc].products[0], data); - break; - } - // End Primitive Recipe Implementations. - default: { - cout << "non primitive op: " << instructions[pc].operation << '\n'; - } + // Primitive Recipe Implementations. + case COPY: { + trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; + vector<int> data = read_memory(instructions[pc].ingredients[0]); + write_memory(instructions[pc].products[0], data); + break; + } + // End Primitive Recipe Implementations. + default: { + cout << "non primitive op: " << instructions[pc].operation << '\n'; + } } ++pc; } |