diff options
Diffstat (limited to 'src/boot.asm')
-rw-r--r-- | src/boot.asm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/boot.asm b/src/boot.asm index 73f1214..68cbb52 100644 --- a/src/boot.asm +++ b/src/boot.asm @@ -87,7 +87,11 @@ stage2: mov si, MESSAGE_STAGE_2_LOADED call print_string -; detect disk geometry +; detect disk geometry (works for real floppies only?) + mov cl, [BOOT_DRIVE] + and cl, 0x80 + jnz .not_a_floppy + mov si, MESSAGE_DETECTING_DISK_GEOMETRY call print_string mov dl, [BOOT_DRIVE] @@ -95,6 +99,7 @@ stage2: mov dl, [BOOT_DRIVE] call probe_and_fix_disk_geometry call print_newline +.not_a_floppy: ; print a message we are now loading the kernel mov si, MESSAGE_LOADING_KERNEL |