fix: correction de bogues dans les fonctions "compstr" et "evalue"
This commit is contained in:
parent
a733711bc2
commit
171ec40b83
|
@ -601,11 +601,13 @@ endp invert
|
||||||
PROC cmpstr FAR
|
PROC cmpstr FAR
|
||||||
ARG @src:word,@dest:word
|
ARG @src:word,@dest:word
|
||||||
USES cx,dx,si,di
|
USES cx,dx,si,di
|
||||||
|
push ds
|
||||||
|
pop es
|
||||||
mov si,[@src]
|
mov si,[@src]
|
||||||
mov di,[@dest]
|
mov di,[@dest]
|
||||||
call getlength,si
|
|
||||||
mov cx,ax
|
|
||||||
call getlength,di
|
call getlength,di
|
||||||
|
mov cx,ax
|
||||||
|
call getlength,si
|
||||||
cmp cx,ax
|
cmp cx,ax
|
||||||
jne @@notequal
|
jne @@notequal
|
||||||
repe cmpsb
|
repe cmpsb
|
||||||
|
@ -617,8 +619,8 @@ endp cmpstr
|
||||||
PROC evalue FAR
|
PROC evalue FAR
|
||||||
ARG @src:word,@dest:word
|
ARG @src:word,@dest:word
|
||||||
USES cx,si,di,es
|
USES cx,si,di,es
|
||||||
push es
|
push ds
|
||||||
pop ds
|
pop es
|
||||||
mov si,[@src]
|
mov si,[@src]
|
||||||
mov di,[@dest]
|
mov di,[@dest]
|
||||||
call getlength ,di
|
call getlength ,di
|
||||||
|
@ -633,8 +635,8 @@ PROC evalue FAR
|
||||||
@@noident:
|
@@noident:
|
||||||
sub ax,cx
|
sub ax,cx
|
||||||
dec ax
|
dec ax
|
||||||
clc
|
|
||||||
popf
|
popf
|
||||||
|
clc
|
||||||
ret
|
ret
|
||||||
endp evalue
|
endp evalue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue