Advertisement
atm959

Wow

Jul 21st, 2019
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. drawPointer:
  2.     mov [tempX], WORD 0
  3. .outerLoop:
  4.     cmp [tempX], WORD 8
  5.     je .done
  6.     mov [tempY], WORD 0
  7. .innerLoop:
  8.  
  9.     mov ecx, MousePointerProhibit
  10.     mov edx, 0A0000h
  11.  
  12.     mov ax, [pointerX]
  13.     mov bx, [tempX]
  14.     add ax, bx
  15.     mov [calculatedX], ax
  16.  
  17.     mov ax, [pointerY]
  18.     mov bx, [tempY]
  19.     add ax, bx
  20.     mov [calculatedY], ax
  21.  
  22.     mov eax, DWORD 0
  23.     mov ax, [calculatedY]
  24.     mov bx, 320
  25.     mul bx
  26.     mov bx, [calculatedX]
  27.     add ax, bx
  28.     add edx, eax
  29.  
  30.     mov eax, DWORD 0
  31.     mov ax, [tempY]
  32.     mov bl, 8
  33.     mul bl
  34.     mov bx, [tempX]
  35.     add ax, bx
  36.     add ecx, eax
  37.  
  38.     mov cl, BYTE [ecx]
  39.     cmp cl, 00
  40.     je .transparent
  41.     sub cl, BYTE 1
  42.     mov [edx], cl
  43.  
  44. .transparent:
  45.  
  46.     cmp [tempY], WORD 7
  47.     je .innerLoopDone
  48.     inc WORD [tempY]
  49.     jmp .innerLoop
  50.  
  51. .innerLoopDone:
  52.     inc WORD [tempX]
  53.     jmp .outerLoop
  54. .done:
  55.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement