799,15 → 799,15 |
push eax |
xor edx, edx |
mov eax, ebx |
div dword [BgrDataHeight] ; edx := y mod BgrDataHeight |
mov ecx, [BgrDataHeight] |
div ecx ; edx := y mod BgrDataHeight |
sub ecx, edx ; ecx := BgrDataHeight - (y mod BgrDataHeight) |
pop eax |
push eax |
mov ecx, [BgrDataWidth] |
mov esi, edx |
imul esi, ecx ; esi := (y mod BgrDataHeight) * BgrDataWidth |
imul esi, [BgrDataWidth] ; esi := (y mod BgrDataHeight) * BgrDataWidth |
xor edx, edx |
div ecx ; edx := x mod BgrDataWidth |
sub ecx, edx |
div dword [BgrDataWidth] ; edx := x mod BgrDataWidth |
add esi, edx ; esi := (y mod BgrDataHeight)*BgrDataWidth + (x mod BgrDataWidth) |
pop eax |
lea esi, [esi*3] |