diff options
| author | Alejandro Sior <aho@sior.be> | 2022-05-21 14:04:42 +0200 |
|---|---|---|
| committer | Alejandro Sior <aho@sior.be> | 2022-05-21 14:04:42 +0200 |
| commit | 3aefeeb723b8822916fb39b7c32551c35c06e32f (patch) | |
| tree | 380494fb2184101961e395d6d81accf91138efbe /bios/boot.ha | |
| parent | 35c9df451d4f415632a4a1f64b06d1de12340687 (diff) | |
boot: reorganize bios and drive modules
Diffstat (limited to 'bios/boot.ha')
| -rw-r--r-- | bios/boot.ha | 12 |
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; |
