1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// MIT License, Copyright (c) 2020 Marvin Borner #include <def.h> #include <fs.h> #include <load.h> #include <print.h> void bin_load(char *path) { char *data = read_file(path); void (*entry)(); *(void **)(&entry) = data; entry(); }