File tree
Expand file treeCollapse file tree1 file changed
+7
-0
lines changed Assets/Patterns/10. Bytecode/Scripts
Expand file treeCollapse file tree1 file changed
+7
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -47,6 +47,13 @@ public void Interpret(int[] bytecode)
|
47 | 47 | }
|
48 | 48 | case Instruction.INST_LITERAL:
|
49 | 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 |
50 | 57 | Push(bytecode[++i]);
|
51 | 58 |
|
52 | 59 | break;
|
|
You can’t perform that action at this time.
0 commit comments