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 --- bios/drive/drive.ha | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bios/drive/drive.ha (limited to 'bios/drive/drive.ha') diff --git a/bios/drive/drive.ha b/bios/drive/drive.ha new file mode 100644 index 0000000..35cccca --- /dev/null +++ b/bios/drive/drive.ha @@ -0,0 +1,5 @@ +export let @symbol("drive_no") drive_no: u8; +export let @symbol("drive_spt") drive_spt: u8; +export let @symbol("drive_heads") drive_heads: u8; + +export fn read() void; -- cgit v1.2.3