aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/main.c b/src/main.c
index 74cfe24..e5b2494 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,18 +1,16 @@
-#include <gui.h>
-#include <stdio.h>
+#include <cpu.h>
#include <stdlib.h>
-#include <string.h>
-
-static void print_help(void)
-{
- printf("Help\n");
- exit(0);
-}
int main(int argc, char *argv[])
{
- if (argc == 2 && (strcmp(argv[1], "--help") == 0))
- print_help();
+ (void)argc;
+ (void)argv;
+
+ int cpu = cpu_init();
+ if (cpu < 0)
+ exit(1);
+ cpu_run();
+ cpu_destroy();
- return gui_init(argc, argv);
+ return 0;
}