diff options
| author | Alejandro Sior <aho@sior.be> | 2022-05-20 14:27:08 +0200 |
|---|---|---|
| committer | Alejandro Sior <aho@sior.be> | 2022-05-20 14:27:08 +0200 |
| commit | 68e5c0c5c9dc26e9c7ce4bf5252719ee8dc4b3ae (patch) | |
| tree | 0dac63296f1585bda3464dc58f5fad96b516b34b /main.ha | |
| parent | 74d0e8c1f9527054a012aa9937c590537f9d3d5b (diff) | |
bios.call: store the gdt on 8+2 bytes
Diffstat (limited to 'main.ha')
| -rw-r--r-- | main.ha | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -20,4 +20,12 @@ export fn main() void = { bios::regs.ecx = 0; bios::regs.edx = 5 << 8 | 5; bios::call(0x10); + bios::regs.eax = 0x2 << 8; + bios::regs.ebx = 0; + bios::regs.edx = 0 << 8 | 0; + bios::call(0x10); + bios::regs.eax = 0x9 << 8 | 'A': u16; + bios::regs.ebx = 0 << 8 | 0xd; + bios::regs.ecx = 8; + bios::call(0x10); }; |
