diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-06 15:12:13 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-06 15:12:13 +0200 |
| commit | 2a204125c98699aa2baa8f6f91fc5129f6eb7385 (patch) | |
| tree | 1b719549e6ce9af77c74e264400c0a3da0b2a7eb /boot/vesa_setup_16.asm | |
| parent | a2e81c781080121b283da598477baa735718ec63 (diff) | |
Added asm code that waits for keypress on booting
Diffstat (limited to 'boot/vesa_setup_16.asm')
| -rw-r--r-- | boot/vesa_setup_16.asm | 20 |
1 files changed, 20 insertions, 0 deletions
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 |
