summaryrefslogtreecommitdiff
path: root/bios/drive/+x86_64/drive.s
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 /bios/drive/+x86_64/drive.s
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 'bios/drive/+x86_64/drive.s')
-rw-r--r--bios/drive/+x86_64/drive.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/bios/drive/+x86_64/drive.s b/bios/drive/+x86_64/drive.s
new file mode 100644
index 0000000..1f3828e
--- /dev/null
+++ b/bios/drive/+x86_64/drive.s
@@ -0,0 +1,7 @@
+.code16
+
+.globl bios.drive.read
+bios.drive.read:
+ mov $0x2, %ah
+ int $0x13
+ ret