summaryrefslogtreecommitdiff
path: root/kernel/util.asm
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2024-05-14 19:43:28 +0100
committerAiden Gall <aiden@aidengall.xyz>2024-05-14 19:51:05 +0100
commit93585dc4da3be099e1ffe7e757aa7caff2e1f013 (patch)
treec1335acdd74cff12e545ce386ab2dbd176eaa473 /kernel/util.asm
initial commit
Diffstat (limited to 'kernel/util.asm')
-rw-r--r--kernel/util.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/util.asm b/kernel/util.asm
new file mode 100644
index 0000000..548223d
--- /dev/null
+++ b/kernel/util.asm
@@ -0,0 +1,20 @@
+format ELF64
+
+section '.text' executable
+
+public vga_cursor_hide
+vga_cursor_hide:
+ mov dx, 0x03d4
+ mov al, 0x0a
+ out dx, al
+
+ inc dx
+ mov al, 0x20
+ out dx, al
+
+ ret
+
+public halt
+halt:
+ hlt
+ jmp halt