From d241c9c41cdf2c1d0aa01d9ddb00e110ebaded97 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Mar 2015 17:10:43 -0700 Subject: 911 --- cpp/012run | 22 +++++++++++----------- 1 file 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 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 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; } -- cgit 1.4.1-2-gfad0