about summary refs log tree commit diff stats
path: root/.gitignore
blob: e828f539cf895ece0aaff71a107f97aaa44fd6f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
app/
build/
.cache/
*.o
pong
.flatpak-builder
flatpak_repo/
build-dir/
Makefile
Pong.make
*.flatpak
bin/
obj/
/* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
:(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")
//: beware: overridden in later layers
case _PRINT: {
  vector<int> result(read_memory(instructions[pc].ingredients[0]));
  cout << result[0] << '\n';
  break;
}