aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-08-27 20:37:51 +0000
committerhpa <hpa>2003-08-27 20:37:51 +0000
commita3fbe314c9726172d6ffd52378b83c6c22716406 (patch)
tree1a7ce631c89000cab6cc602b9f9de50021e3e9c8
parent21f2acd8b66d97cf3d3ad7bbc4a3053a2adc8d53 (diff)
downloadsyslinux-a3fbe314c9726172d6ffd52378b83c6c22716406.tar.gz
syslinux-a3fbe314c9726172d6ffd52378b83c6c22716406.tar.xz
syslinux-a3fbe314c9726172d6ffd52378b83c6c22716406.zip
Slight optimizationsyslinux-2.07-pre1
-rw-r--r--memdisk/memdisk.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/memdisk/memdisk.asm b/memdisk/memdisk.asm
index ad295b40..f3563285 100644
--- a/memdisk/memdisk.asm
+++ b/memdisk/memdisk.asm
@@ -173,9 +173,9 @@ Reset:
; user didn't request HD reset, then just drop the command.
xor ax,ax ; Bottom of memory
mov es,ax
- mov al,[es:0x410] ; BIOS equipment byte
- shr al,6 ; Top two bits + 1
- jz success ; If this is the only device, just report success
+ ; BIOS equipment byte, top two bits + 1 == total # of floppies
+ test byte [es:0x410],0C0h
+ jz success
; ... otherwise pass it to the BIOS
.pass_on:
pop ax ; Drop return address