Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tempX: dw 0 ;Earlier in the file
- tempY: dw 0 ;Earlier in the file
- pointerX: db 0
- pointerY: db 0
- calculatedX: dw 0
- calculatedY: dw 0
- drawPointer:
- mov [tempX], WORD -1
- mov [tempY], WORD -1
- .pointerLoopX:
- add [tempX], WORD 1
- mov [tempY], WORD -1
- .pointerLoopY:
- add [tempY], WORD 1
- mov ecx, MousePointer
- 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 [calculatedX], ax
- mov ax, [calculatedY]
- mov bx, 320
- mul bx
- mov bx, [calculatedX]
- add ax, bx
- add edx, eax
- mov ax, [tempY]
- mov bx, 8
- mul bx
- mov bx, [tempX]
- add ax, bx
- add ecx, eax
- mov cl, [ecx]
- mov [edx], cl
- cmp [tempX], WORD 8
- jne .pointerLoopY
- cmp [tempY], WORD 8
- jne .pointerLoopX
- ret
Advertisement
Add Comment
Please, Sign In to add comment