2017-05-13 18:36:46 +01:00
|
|
|
#include "debug.h"
|
2017-05-14 13:06:17 +01:00
|
|
|
#include "vm.h"
|
|
|
|
#include <fstream>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2017-05-13 18:36:46 +01:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main() {
|
2017-05-14 13:06:17 +01:00
|
|
|
ifstream vmbytecode;
|
|
|
|
VM vm;
|
|
|
|
uint8_t *data;
|
2017-05-13 18:36:46 +01:00
|
|
|
|
2017-05-14 13:06:17 +01:00
|
|
|
vm.status();
|
|
|
|
// vm.status();
|
|
|
|
/*
|
|
|
|
if (vmbytecode != NULL) {
|
|
|
|
fread()
|
|
|
|
} else {
|
|
|
|
fprintf(stderr, "Couldn't open bytecode!\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
return 0;
|
2017-05-13 18:36:46 +01:00
|
|
|
}
|