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
This commit is contained in:
parent
4499bd29b3
commit
d2075af8e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user