From a3fbe314c9726172d6ffd52378b83c6c22716406 Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 27 Aug 2003 20:37:51 +0000 Subject: [PATCH] Slight optimization --- memdisk/memdisk.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/memdisk/memdisk.asm b/memdisk/memdisk.asm index ad295b4..f356328 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 -- 2.7.4