From b75c10c9d8c7405ba2f89724b485154d5201c404 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 5 Sep 2014 02:36:33 +0200 Subject: working on bootloaders (lba) --- boot/vesa_setup_16.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'boot/vesa_setup_16.asm') diff --git a/boot/vesa_setup_16.asm b/boot/vesa_setup_16.asm index f21cbff..40ca0c1 100644 --- a/boot/vesa_setup_16.asm +++ b/boot/vesa_setup_16.asm @@ -1,3 +1,10 @@ +VESA_CHECK1: + db "VESA: get modes!",0 +VESA_CHECK2: + db "VESA: get info on target mode!",0 +VESA_CHECK3: + db "VESA: switching to target mode!",0 + VesaSetup: pusha @@ -11,6 +18,7 @@ VesaSetup: vesa_err: mov bx, VESA_CHECK1 call print_string + call print_nextline cmp ax,0x004f je vesa_ok jmp vesa_err @@ -28,11 +36,13 @@ VesaSetup: vesa_err2: mov bx, VESA_CHECK2 call print_string + call print_nextline cmp ax,0x004f je vesa_ok2 jmp vesa_err2 vesa_ok2: + ;VESA: finally switch to the mode of choice! mov ax,0x4f02 ;vesa function: Set Mode mov bx,VESA_MODE_SELECT @@ -42,6 +52,7 @@ VesaSetup: vesa_err3: mov bx, VESA_CHECK3 call print_string + call print_nextline jmp vesa_err3 vesa_ok3: popa -- cgit v1.2.3