From 93585dc4da3be099e1ffe7e757aa7caff2e1f013 Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Tue, 14 May 2024 19:43:28 +0100 Subject: initial commit --- kernel/util.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 kernel/util.asm (limited to 'kernel/util.asm') 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 -- cgit v1.2.3