summaryrefslogtreecommitdiff
path: root/kernel/util.asm
diff options
context:
space:
mode:
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