aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-07-13 16:08:12 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-07-13 16:08:12 +0800
commit927069c1099f4beb4d0cc6b8972beb6801c03f84 (patch)
tree969e748ab91021721acdbcd8b1fed9238f210f3c /core/isolinux.asm
parentd33dbedfe1cddbf578b86d599cdba7c8356b91e8 (diff)
downloadsyslinux-927069c1099f4beb4d0cc6b8972beb6801c03f84.tar.gz
Core: do trick on the hybrid mode detection
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index f369e598..41777d79 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -1169,12 +1169,7 @@ all_read:
mov eax,iso_fs_ops
mov dl,[DriveNumber]
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:
+ sete dh ; 1 for cdrom, 0 for hybrid mode
mov ecx,[bsHidden]
mov ebx,[bsHidden+4]
mov si,[bsHeads]