diff options
Diffstat (limited to 'src/features/load.c')
-rw-r--r-- | src/features/load.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/features/load.c b/src/features/load.c new file mode 100644 index 0000000..37ed6ad --- /dev/null +++ b/src/features/load.c @@ -0,0 +1,13 @@ +#include <def.h> +#include <fs.h> +#include <print.h> + +void bin_load(char *path) +{ + char *data = read_file(path); + + void (*entry)(); + *(void **)(&entry) = data + 0xfe; + + entry(); +} |