summaryrefslogtreecommitdiff
path: root/real/real.ha
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-05-19 08:45:26 +0200
committerAlejandro Sior <aho@sior.be>2022-05-19 08:45:26 +0200
commit776a3710652f78b44718450406d0683974aef72a (patch)
tree84f1b70e07b831d13db8c53c0ab0030ec0d85c09 /real/real.ha
parente50cbe8eb763cf63fb44b047d5164f6fbf07eb39 (diff)
bios: stub calls interrupt number; simplified bios.ha main interface
Instead of having the bios.call stub calling a function, make it directly call an interrupt that is changed dynamically by modifying the code at runtime. Simplify the bios.ha interface and document it. Next up: implementing a high level drive interface for the BIOS using BIOS interrupts
Diffstat (limited to 'real/real.ha')
-rw-r--r--real/real.ha22
1 files changed, 0 insertions, 22 deletions
diff --git a/real/real.ha b/real/real.ha
deleted file mode 100644
index ee42523..0000000
--- a/real/real.ha
+++ /dev/null
@@ -1,22 +0,0 @@
-export type state = struct {
- @offset(0) eax: u32,
- @offset(4) ebx: u32,
- @offset(8) ecx: u32,
- @offset(12) edx: u32,
- @offset(16) edi: u32,
- @offset(20) esi: u32
-};
-
-export let regs: state;
-
-
-export fn clearregs() void = {
- regs = state {
- ...
- };
-};
-
-export @symbol("real.call") fn call(addr: u16) void;
-
-export @symbol("testt") fn testt() void;
-export @symbol("drive_read_lba") fn drive_read_lba() void;