fix: correction d'un bogue dans la fonction execfile concernant l'execution de fichier CE

This commit is contained in:
Nicolas Hordé 2004-11-19 19:57:43 +00:00
parent 9c770034e7
commit 0348ef59a4
1 changed files with 10 additions and 1 deletions

View File

@ -6,10 +6,10 @@ smart
org 0h org 0h
include ..\include\fat.h include ..\include\fat.h
include ..\include\mem.h
start: start:
jmp tsr ;Saute à la routine résidente jmp tsr ;Saute à la routine résidente
names db 'DRIVE' ;Nom drivers
id dw 1234h ;Identifiant drivers id dw 1234h ;Identifiant drivers
Tsr: Tsr:
cli ;Désactive interruptions logiciellement cli ;Désactive interruptions logiciellement
@ -182,12 +182,21 @@ execfile:
pop gs pop gs
mov ah,6 mov ah,6
int 49h int 49h
mov ah,12
int 49h
jc reallyerror
push es push es
push cs push cs
mov ax,offset arrive mov ax,offset arrive
push ax push ax
push es push es
cmp word ptr gs:[0h],'EC'
jne noce
push size exe
jmp wasce
noce:
push 0000h push 0000h
wasce:
push es push es
push es push es
push es push es