We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ca051 commit 8f71582Copy full SHA for 8f71582
tutorial/en/2-Virtual-Machine.md
@@ -223,6 +223,7 @@ Let's implement it in the `eval` function:
223
void eval() {
224
int op, *tmp;
225
while (1) {
226
+ op = *pc++; // get next operation code
227
if (op == IMM) {ax = *pc++;} // load immediate value to ax
228
else if (op == LC) {ax = *(char *)ax;} // load character to ax, address in ax
229
else if (op == LI) {ax = *(int *)ax;} // load integer to ax, address in ax
0 commit comments