summaryrefslogtreecommitdiff
path: root/core/isolinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 4b11b43c..f369e598 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -1168,7 +1168,13 @@ all_read:
extern iso_fs_ops
mov eax,iso_fs_ops
mov dl,[DriveNumber]
- mov dh,1 ; it's cdrom
+ cmp word [BIOSType],bios_cdrom
+ jne hybrid
+ mov dh,1 ; it's cdrom
+ jmp end
+hybrid:
+ mov dh,0 ; it's in hybrid mode
+end:
mov ecx,[bsHidden]
mov ebx,[bsHidden+4]
mov si,[bsHeads]