Initial commit: GKERN glyph kernel

This commit is contained in:
gyt
2026-07-09 13:28:07 -04:00
commit 0807c58eae
43 changed files with 6006 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
#include "vm.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) { if (argc < 2) { printf("Usage: %s <file.gobj>\n", argv[0]); return 1; } VM vm; if (vm_load_gobj(&vm, argv[1]) != 0) return 1; printf("=== GlyphOS VM v0.1 ===\nLoaded: %s\n========================\n", argv[1]); vm_run(&vm); printf("========================\nVM halted at pc=%u after %lu ticks\n", vm.pc, (unsigned long)vm.tick); free(vm.code); free(vm.ext_ops); for (uint32_t i = 0; i < vm.region_count; i++) free(vm.regions[i].bytes); return 0; }