blob: 37ed6ad5e8f927038235d8ac67fdba21e2600125 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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();
}
|