Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov eax, dim
- mul eax
- mov ebx, image
- mov ch, threshold
- mov esi, 0
- beg:
- cmp esi, eax
- jg end
- mov cl, byte ptr[ebx + esi]
- cmp cl, ch
- jb less
- mov dl, 0xFF
- jmp afterless
- less:
- mov dl, 0x00
- afterless :
- inc ESI
- mov byte ptr[ebx + esi], dl
- jmp beg
- end:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement