Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Binary-strings/8086-Assembly/binary-strings-3.8086
Normal file
14
Task/Binary-strings/8086-Assembly/binary-strings-3.8086
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
;this code assumes that both DS and ES point to the correct segments.
|
||||
cld
|
||||
mov si,offset foo
|
||||
mov di,offset bar
|
||||
mov cx,4 ;length of the shorter of the two.
|
||||
|
||||
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
|
||||
ret
|
||||
|
||||
foo byte "test"
|
||||
bar byte "test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue