21 lines
347 B
C
21 lines
347 B
C
#include "../../../vm/vm.h"
|
|
#include <SDL2/SDL.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
VM vm = {0};
|
|
|
|
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
|
printf("SDL initialization failed: %s\n", SDL_GetError());
|
|
return 1;
|
|
}
|
|
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
|
|
|
while(step_vm(&vm)) {
|
|
// do stuff
|
|
}
|
|
|
|
printf("done\n");
|
|
return 0;
|
|
}
|