Implemented all opcodes, including LOADI and STOREI

This commit is contained in:
2017-01-24 19:47:19 +01:00
parent 1bd5b0a6da
commit 499b0539d3
5 changed files with 55 additions and 46 deletions

View File

@@ -3,8 +3,9 @@
int main(int argc, char** argv) {
int i = 10;
int x = i++ + (i++ + 1);
int i = 1;
char a[4] = { 1, 2, 3, 4 };
int x = a[i++] + a[i++];
// aci, i == 12 ; x == 21
return 0;
}