Implemented ROM loading and program loading. Implemented interrupts.

This commit is contained in:
2017-01-27 13:03:40 +01:00
parent a20dde4d5e
commit f3c115d316
3 changed files with 50 additions and 14 deletions

View File

@@ -1,11 +1,10 @@
#include <stdlib.h>
#include <stdio.h>
#include "vm.h"
int main(int argc, char** argv) {
int i = 1;
char a[4] = { 1, 2, 3, 4 };
int x = a[i++] + a[i++];
// aci, i == 12 ; x == 21
vm_init("test.bin");
vm_step();
return 0;
}