From 776a3710652f78b44718450406d0683974aef72a Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Thu, 19 May 2022 08:45:26 +0200 Subject: bios: stub calls interrupt number; simplified bios.ha main interface Instead of having the bios.call stub calling a function, make it directly call an interrupt that is changed dynamically by modifying the code at runtime. Simplify the bios.ha interface and document it. Next up: implementing a high level drive interface for the BIOS using BIOS interrupts --- real/real.ha | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 real/real.ha (limited to 'real') diff --git a/real/real.ha b/real/real.ha deleted file mode 100644 index ee42523..0000000 --- a/real/real.ha +++ /dev/null @@ -1,22 +0,0 @@ -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; -- cgit v1.2.3