diff options
Diffstat (limited to 'kernel/util.asm')
-rw-r--r-- | kernel/util.asm | 20 |
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 |