feat: evite la creation d'un nouveau bloc memoire fat a chaque appel de la fonction initdrive

This commit is contained in:
Nicolas Hordé 2004-11-10 19:30:08 +00:00
parent 4f63f21906
commit d5a9a53cd6
1 changed files with 6 additions and 0 deletions

View File

@ -478,11 +478,17 @@ oknoagaintry:
shl edx,16 shl edx,16
add edx,eax add edx,eax
mov ecx,edx mov ecx,edx
mov dx,cs
mov si,offset datafat
mov ah,9
int 49h
jnc hadafatbloc
mov si,offset datafat mov si,offset datafat
mov ah,2 mov ah,2
int 49h int 49h
mov ah,3 mov ah,3
int 49h int 49h
hadafatbloc:
xor di,di xor di,di
mov dx,myboot.SectorsPerFat mov dx,myboot.SectorsPerFat
mov cx,AdressFat mov cx,AdressFat