|
|
|
|
|
|
|
|
.plotYagainstX_loop% push eax ; preserve X push ebx ; preserve Y sar eax, 8 ; EAX = X >> 8 sar ebx, 8 ; EBX = Y >> 8 push edx ; colour push ebx ; Y >> 8 push eax ; X >> 8 push [ebp + 8] ; dispVars.bmBuffH% push [ebp + 4] ; dispVars.bmBuffW% push [ebp] ; dispVars.bmBuffAddr% call GFXLIB_Plot2x2FilteredPoint% pop ebx ; restore EBX (Y) pop eax ; restore EAX (X) add eax, edi ; X += step add ebx, esi ; Y += m cmp eax, ecx ; X <= x2 ? jle plotYagainstX_loop%
.loopx call plotsubpixel add edi,eax add esi,&10000 cmp esi,ebx jc loopx