diff options
Diffstat (limited to 'cpp/034exclusive_container')
-rw-r--r-- | cpp/034exclusive_container | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/034exclusive_container b/cpp/034exclusive_container index d9f266c0..89a4f921 100644 --- a/cpp/034exclusive_container +++ b/cpp/034exclusive_container @@ -88,14 +88,14 @@ MAYBE_CONVERT, Recipe_number["maybe-convert"] = MAYBE_CONVERT; :(before "End Primitive Recipe Implementations") case MAYBE_CONVERT: { - trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; - reagent base = canonize(instructions[pc].ingredients[0]); + trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name; + reagent base = canonize(current_instruction().ingredients[0]); int base_address = base.value; int base_type = base.types[0]; assert(Type[base_type].kind == exclusive_container); - trace("run") << "ingredient 1 is " << instructions[pc].ingredients[1].name; - assert(isa_literal(instructions[pc].ingredients[1])); - size_t tag = instructions[pc].ingredients[1].value; + trace("run") << "ingredient 1 is " << current_instruction().ingredients[1].name; + assert(isa_literal(current_instruction().ingredients[1])); + size_t tag = current_instruction().ingredients[1].value; vector<int> result; if (tag == static_cast<size_t>(Memory[base_address])) { result.push_back(base_address+1); @@ -103,6 +103,6 @@ case MAYBE_CONVERT: { else { result.push_back(0); } - write_memory(instructions[pc].products[0], result); + write_memory(current_instruction().products[0], result); break; } |