Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. mov eax, dim
  2. mul eax
  3. mov ebx, image
  4. mov ch, threshold
  5. mov esi, 0
  6.  
  7. beg:
  8. cmp esi, eax
  9. jg end
  10. mov cl, byte ptr[ebx + esi]
  11. cmp cl, ch
  12. jb less
  13. mov dl, 0xFF
  14. jmp afterless
  15.  
  16. less:
  17. mov dl, 0x00
  18.  
  19. afterless :
  20. inc ESI
  21. mov byte ptr[ebx + esi], dl
  22. jmp beg
  23.  
  24. end:
  25. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement