Binary strings: Difference between revisions

Content added Content deleted
Line 69: Line 69:
mov cx,4 ;length of the shorter of the two.
mov cx,4 ;length of the shorter of the two.


repz cmpsb
repz cmpsb ;this will continue until the strings are different or CX = 0, whichever occurs first. If, after this, the zero flag is set and CX=0, the strings were the same.
; this will continue until the strings are different or CX = 0,
; whichever occurs first. If, after this, the zero flag is set and CX=0,
; the strings were the same
ret
ret