From 6ef6baa7511c9c7e19135e2a11888680f2b8fbfb Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 1 Dec 2017 21:43:50 -0500 Subject: Kernel clears screen and sets cursor position; Expand to 16K --- kernel.asm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'kernel.asm') diff --git a/kernel.asm b/kernel.asm index 801404b..51d0e7f 100644 --- a/kernel.asm +++ b/kernel.asm @@ -30,6 +30,10 @@ kmain: xor si, si xor bp, bp + call cls ; clear console + push 0 ; home the cursor + call setcursor + push msg_entry_point call puts add sp, 2 @@ -66,11 +70,14 @@ kmain: mov al, CR call putc + push banner call puts add sp, 2 - + ; - hex test + push ds + call printh .mainloop: call kbd_read @@ -111,5 +118,5 @@ banner: db "+========================+", CR ; Error messages error_msg_panic: db "PANIC: ", 0 -times 512 * 16 db 0 +times 512 * 20h db 0 dw 0xefbe -- cgit