Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data segment
- ends
- stack segment
- dw 128 dup(0)
- ends
- code segment
- start:
- mov ax, data
- mov ds, ax
- mov es, ax
- mov ax, 110110010110110b
- mov dx, ax
- mov cx, 13
- mov bl, 0
- count:
- push dx
- and dx, 1011b
- cmp dx, 1011b
- jnz no
- yes:
- inc bl
- no:
- pop dx
- shr dx, 1
- loop count
- ends
- end start
Advertisement
Add Comment
Please, Sign In to add comment