Binary strings: Difference between revisions
m
→Compare two strings: formatting
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→Compare two strings: formatting) |
||
Line 69:
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,
▲
; the strings were the same
ret
|