From abb4ab5b5a428873c11b2a69d292f0292b95ce45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 23 Mar 2007 16:46:35 +0000 Subject: [PATCH] fix: prise en charge de la projection de librairie a la demande dans la fonction "mbloadfuncs" Correction d'un bogue dans la fonction "mbsearchfunc" --- noyau/mcb.asm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/noyau/mcb.asm b/noyau/mcb.asm index ed0b1ce..c2180ce 100644 --- a/noyau/mcb.asm +++ b/noyau/mcb.asm @@ -667,20 +667,23 @@ PROC mbloadfuncs FAR @@loadfuncs: cmp [word ptr si],0 je @@endofloading -pushad -call biosprint,si -popad call mbsearchfunc,si jnc @@toendoftext mov bx,si +pushad +call biosprint,si +popad @@findend: inc bx cmp [byte ptr bx], ':' jne @@findend mov [byte ptr bx],0 -;call projectfile,bx + call [cs:projfile],si jc @@erroronload mov [byte ptr bx],':' +pushad +call biosprint,si +popad call mbsearchfunc,si jc @@libnotexist @@toendoftext: @@ -710,18 +713,18 @@ popad endp mbloadfuncs -;Recherche une fonction pointé par DS:SI en mémoire et renvoie son adresse en DX:AX +;Recherche une fonction pointé par DS:%0 en mémoire et renvoie son adresse en DX:AX PROC mbsearchfunc FAR ARG @func:word USES bx,si,di,es mov bx,[@func] - push bx + mov si,bx @@findend: inc bx cmp [byte ptr bx], ':' jne @@findend mov [byte ptr bx],0 - call mbfind + call mbfind,si mov [byte ptr bx],':' jc @@notfoundattallthesb mov es,ax