blob: ee42523430648bb75e6a4edc7c46958d385b9fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
export type state = struct {
@offset(0) eax: u32,
@offset(4) ebx: u32,
@offset(8) ecx: u32,
@offset(12) edx: u32,
@offset(16) edi: u32,
@offset(20) esi: u32
};
export let regs: state;
export fn clearregs() void = {
regs = state {
...
};
};
export @symbol("real.call") fn call(addr: u16) void;
export @symbol("testt") fn testt() void;
export @symbol("drive_read_lba") fn drive_read_lba() void;
|