summaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-05-20 14:27:08 +0200
committerAlejandro Sior <aho@sior.be>2022-05-20 14:27:08 +0200
commit68e5c0c5c9dc26e9c7ce4bf5252719ee8dc4b3ae (patch)
tree0dac63296f1585bda3464dc58f5fad96b516b34b /main.ha
parent74d0e8c1f9527054a012aa9937c590537f9d3d5b (diff)
bios.call: store the gdt on 8+2 bytes
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.ha b/main.ha
index e5b2e7c..75ccb98 100644
--- a/main.ha
+++ b/main.ha
@@ -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);
};