* use eax instead of edi in GetPixel320, to avoid saving/restoring edi

git-svn-id: trunk@41118 -
This commit is contained in:
nickysn 2019-01-29 13:39:40 +00:00
parent 915bc126a5
commit 4d00ac486a

View File

@ -2319,17 +2319,15 @@ End;
{# Var X located in register ax
# Var Y located in register dx }
push ebx
push edi
movsx edi, ax
movsx eax, ax
movsx ebx, dx
movsx ecx, StartYViewPort
movsx edx, StartXViewPort
add ebx, ecx
add edi, edx
add eax, edx
shl ebx, 6
add edi, ebx
movzx eax, byte ptr fs:[edi+ebx*4+$a0000]
pop edi
add eax, ebx
movzx eax, byte ptr fs:[eax+ebx*4+$a0000]
pop ebx
end;