about summary refs log blame commit diff stats
path: root/cpp/090debug
blob: 70d518ed4855ab766370c0274d5ff14c6611ad48 (plain) (tree)
1
2
3
4
5
6
7






                                                




                                                                   
:(before "End Globals")
// Operator to look at fields of records.
const int _PRINT = 99;
:(before "End Primitive Recipe Numbers")
Recipe_number["$print"] = _PRINT;
assert(Next_recipe_number < _PRINT);
:(before "End Primitive Recipe Implementations")
case _PRINT: {
  vector<int> result(read_memory(instructions[pc].ingredients[0]));
  cout << result[0] << '\n';
  break;
}