From ea9ab47d47fbc44523e3bb9daea294d8bf65e7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Sat, 31 Mar 2007 11:17:07 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20corrections=20de=20bogues=20:=20-=20lors?= =?UTF-8?q?=20d'essais=20multiples=20de=20lecture=20ou=20d'=C3=A9criture?= =?UTF-8?q?=20dans=20la=20fonction=20"readsector"=20et=20"writesector"=20-?= =?UTF-8?q?=20dans=20les=20fonctions=20de=20projection-ex=C3=A9cution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/disque.asm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/noyau/disque.asm b/noyau/disque.asm index aea86d3..0c91749 100644 --- a/noyau/disque.asm +++ b/noyau/disque.asm @@ -161,7 +161,7 @@ PROC execfile FAR mov di,[@file] call uppercase,di call projfile,di - ;jc @@reallyerrornoblock + jc @@reallyerrornoblock call [cs:mbfind],di jc @@reallyerror call [cs:mbchown],ax,[word ptr ss:bp+4] @@ -232,7 +232,7 @@ USES cx,si,di,ds,es pop di call uppercase,di call [cs:mbfind],di - jnc @@errorload + jnc @@notace call searchfile,di jne @@errorload jc @@errorload @@ -742,10 +742,9 @@ PROC readsector FAR shl cl,6 or cl,bl mov bx,[@pointer] - mov si,4 - mov al,1 + mov si,5 @@tryagain: - mov ah, 2 + mov ax,0201h int 13h jnc @@done dec si @@ -778,10 +777,9 @@ PROC writesector FAR shl cl,6 or cl, bl mov bx,[@pointer] - mov si,4 - mov al,1 + mov si,5 @@tryagain: - mov ah, 3 + mov ax,0301h int 13h jnc @@done dec si