// Struct defining the contents of the register state used // for bios calls 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, @offset(24) es: u16, }; // The set real mode registers export let regs: state; // Clears the BIOS mode registers export fn clearregs() void = { regs = state { ... }; }; // Call a BIOS interrupt export fn call(intno: u8) void;