From 3aefeeb723b8822916fb39b7c32551c35c06e32f Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Sat, 21 May 2022 14:04:42 +0200 Subject: boot: reorganize bios and drive modules --- bios/boot.ha | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bios/boot.ha (limited to 'bios/boot.ha') 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; -- cgit v1.2.3