Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. push ebp
  2. mov ebp, esp
  3.  
  4. mov eax, dim
  5. mul dim
  6. mov ebx, image
  7. mov ecx, 0
  8.  
  9. Begin:
  10. cmp ecx, eax
  11. jg End
  12. mov dl, byte ptr[ebx + ecx * 1]
  13. cmp dl, threshold
  14. jae Above
  15. cmp dl, threshold
  16. jb Below
  17. Above:
  18. mov dl, 0xFF
  19. mov byte ptr[ebx + ecx * 1], dl
  20. inc ecx
  21. jmp Begin
  22. Below:
  23. mov dl, 0x00
  24. mov byte ptr[ebx + ecx], dl
  25. inc ecx
  26. jmp Begin
  27.  
  28.  
  29. End:
  30.  
  31. mov esp, ebp
  32. pop ebp
  33.  
  34.  
  35. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement