Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawPointer:
- mov [tempX], WORD 0
- .outerLoop:
- cmp [tempX], WORD 8
- je .done
- mov [tempY], WORD 0
- .innerLoop:
- mov ecx, MousePointerProhibit
- mov edx, 0A0000h
- mov ax, [pointerX]
- mov bx, [tempX]
- add ax, bx
- mov [calculatedX], ax
- mov ax, [pointerY]
- mov bx, [tempY]
- add ax, bx
- mov [calculatedY], ax
- mov eax, DWORD 0
- mov ax, [calculatedY]
- mov bx, 320
- mul bx
- mov bx, [calculatedX]
- add ax, bx
- add edx, eax
- mov eax, DWORD 0
- mov ax, [tempY]
- mov bl, 8
- mul bl
- mov bx, [tempX]
- add ax, bx
- add ecx, eax
- mov cl, BYTE [ecx]
- cmp cl, 00
- je .transparent
- sub cl, BYTE 1
- mov [edx], cl
- .transparent:
- cmp [tempY], WORD 7
- je .innerLoopDone
- inc WORD [tempY]
- jmp .innerLoop
- .innerLoopDone:
- inc WORD [tempX]
- jmp .outerLoop
- .done:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement