diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-07-13 16:08:12 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-07-13 16:08:12 +0800 |
commit | 927069c1099f4beb4d0cc6b8972beb6801c03f84 (patch) | |
tree | 969e748ab91021721acdbcd8b1fed9238f210f3c | |
parent | d33dbedfe1cddbf578b86d599cdba7c8356b91e8 (diff) | |
download | syslinux-927069c1099f4beb4d0cc6b8972beb6801c03f84.tar.gz |
Core: do trick on the hybrid mode detection
-rw-r--r-- | core/isolinux.asm | 7 |
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] |