From d2075af8e956987b3c825a7f98195139c589d3c3 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Tue, 21 Jun 2011 23:56:12 +0000 Subject: [PATCH] Correct order of instructions so drive argument not overridden by later instruction to always 0 (first floppy) - thanks to Christian Masloch git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1635 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/memdisk.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/memdisk.asm b/kernel/memdisk.asm index 1daa8e8..7de53c0 100644 --- a/kernel/memdisk.asm +++ b/kernel/memdisk.asm @@ -43,10 +43,10 @@ CPU 386 push ecx push edx ; we only care about high word push eax ; we only care about high word + mov edx,53490000h ; magic3 + mov dl, al ; drive number (only argument, assumed to be in AL) mov eax,454d0800h ; magic1 + AH=8 (get geometry) mov ecx,444d0000h ; magic2 - mov edx,53490000h ; magic3 + mov ebx,3f4b0000h ; magic4 int 13h ; BIOS DISK API shr eax,16 ; ignore AX