diff options
Diffstat (limited to 'boot/vesa_setup_16.asm')
| -rw-r--r-- | boot/vesa_setup_16.asm | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
