[ASM] Fix up some x86 assembly code

This commit is contained in:
Timo Kreuzer 2024-05-26 12:24:20 +03:00
parent e2ffc35894
commit 72aed01dbd

View file

@ -226,12 +226,12 @@ lab listdone
mov esi,string ; si = string mov esi,string ; si = string
_ifnd SSTRPBRK <or ecx,-1> ; set ecx to -1 _ifnd SSTRPBRK, <or ecx,-1> ; set ecx to -1
align @WordSize align @WordSize
lab dstnext lab dstnext
_ifnd SSTRPBRK <add ecx,1> _ifnd SSTRPBRK, <add ecx,1>
mov al,[esi] mov al,[esi]
or al,al or al,al
@ -252,7 +252,7 @@ endif ; SSTRSPN
lab dstdone lab dstdone
_ifnd SSTRPBRK <mov eax,ecx> ; strspn/strcspn: return index _ifnd SSTRPBRK, <mov eax,ecx> ; strspn/strcspn: return index
add esp,32 add esp,32