mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
Do not show "Press any key to boot from CD"-Message if there is no MBR on the hard drive.
svn path=/trunk/; revision=25283
This commit is contained in:
parent
f7e1cf715a
commit
9d06a14bae
|
@ -139,13 +139,21 @@ relocate:
|
||||||
jmp .kbd_buffer_test
|
jmp .kbd_buffer_test
|
||||||
.kbd_buffer_empty:
|
.kbd_buffer_empty:
|
||||||
|
|
||||||
; Check if there is harddisk
|
; Check for MBR on harddisk
|
||||||
pusha
|
pusha
|
||||||
mov ax, 0800h
|
mov ax, 0201h
|
||||||
mov dx, 0080h
|
mov dx, 0080h
|
||||||
|
mov cx, 0001h
|
||||||
|
mov bx, trackbuf
|
||||||
int 13h
|
int 13h
|
||||||
popa
|
popa
|
||||||
jc .boot_cdrom
|
jc .boot_cdrom ; could not read hdd
|
||||||
|
|
||||||
|
push ax
|
||||||
|
mov ax, word [trackbuf]
|
||||||
|
cmp ax, 0
|
||||||
|
je .boot_cdrom ; no boot sector found (hopefully there are no weird bootsectors which begin with 0)
|
||||||
|
pop ax
|
||||||
|
|
||||||
; Display the 'Press key' message and wait for a maximum of 5 seconds
|
; Display the 'Press key' message and wait for a maximum of 5 seconds
|
||||||
call crlf
|
call crlf
|
||||||
|
|
Loading…
Reference in a new issue