Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- push ebp
- mov ebp, esp
- mov eax, dim
- mul dim
- mov ebx, image
- mov ecx, 0
- Begin:
- cmp ecx, eax
- jg End
- mov dl, byte ptr[ebx + ecx * 1]
- cmp dl, threshold
- jae Above
- cmp dl, threshold
- jb Below
- Above:
- mov dl, 0xFF
- mov byte ptr[ebx + ecx * 1], dl
- inc ecx
- jmp Begin
- Below:
- mov dl, 0x00
- mov byte ptr[ebx + ecx], dl
- inc ecx
- jmp Begin
- End:
- mov esp, ebp
- pop ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement