From 2a204125c98699aa2baa8f6f91fc5129f6eb7385 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sat, 6 Sep 2014 15:12:13 +0200 Subject: Added asm code that waits for keypress on booting --- boot/vesa_setup_16.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'boot/vesa_setup_16.asm') diff --git a/boot/vesa_setup_16.asm b/boot/vesa_setup_16.asm index 40ca0c1..62d8d46 100644 --- a/boot/vesa_setup_16.asm +++ b/boot/vesa_setup_16.asm @@ -4,6 +4,8 @@ VESA_CHECK2: db "VESA: get info on target mode!",0 VESA_CHECK3: db "VESA: switching to target mode!",0 +VESA_PAUSE: + db "[Press any key to switch to VESA 0x114]",0 VesaSetup: @@ -42,6 +44,24 @@ VesaSetup: jmp vesa_err2 vesa_ok2: + ;show press any key +; call print_nextline +; mov bx, VESA_PAUSE +; call print_string +; call print_nextline + + ;preempt keyboard buffer +; next_key: +; +; mov al,0 +; mov ah,1 ; block waiting for keyboard scancode +; +; int 0x16 +; cmp ax,0 +; jne next_key +; +; mov ah,0 ; block waiting for keyboard scancode +; int 0x16 ;VESA: finally switch to the mode of choice! mov ax,0x4f02 ;vesa function: Set Mode -- cgit v1.2.3