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.
2 parents 99a687a + 16fa33b commit aa68219Copy full SHA for aa68219
Assets/Patterns/10. Bytecode/Scripts/VM.cs
@@ -47,6 +47,13 @@ public void Interpret(int[] bytecode)
47
}
48
case Instruction.INST_LITERAL:
49
{
50
+ ////Important that this i++ is not inside bytecode[i++] or it will not jump to next i
51
+ //i++;
52
+ //int value = bytecode[i];
53
+ //Push(value);
54
+
55
+ //this can be a oneliner
56
+ //in this case bytecode will use i+1 bytecode element
57
Push(bytecode[++i]);
58
59
break;
0 commit comments