summaryrefslogtreecommitdiff
path: root/bios/boot.ha
diff options
context:
space:
mode:
Diffstat (limited to 'bios/boot.ha')
-rw-r--r--bios/boot.ha12
1 files changed, 12 insertions, 0 deletions
diff --git a/bios/boot.ha b/bios/boot.ha
new file mode 100644
index 0000000..e165f5a
--- /dev/null
+++ b/bios/boot.ha
@@ -0,0 +1,12 @@
+// Address of a 4096 bytes workspace that is located below 0xFFFFF and can be used to store the results
+// of various bios calls
+export const @symbol("_ws") ws: [4096]u8;
+
+// Boot drive number as given by the BIOS at boot time
+export const @symbol("drive_no") drive_number: u8;
+
+// Amount of sectors per track that the boot drive has
+export const @symbol("drive_spt") drive_sectors_per_track: u8;
+
+// Amount of heads that the boot drive has
+export const @symbol("drive_heads") drive_heads: u8;