aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2021-08-29 13:54:31 +0200
committerMarvin Borner2021-08-29 13:54:31 +0200
commiteef250dd4a0ae185a8d9d668f020b2ab5c2f4849 (patch)
treee55aca9bfe918c5673ef925cdf373fdff68faafd /src/main.c
parent7c047df78502d53411fef09c6e39540d2b7e796a (diff)
Start x86 rewrite
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;
}