Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Binary-strings/8086-Assembly/binary-strings-2.8086
Normal file
11
Task/Binary-strings/8086-Assembly/binary-strings-2.8086
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
;this code assumes that ES points to the correct segment.
|
||||
cld
|
||||
mov di,offset TestMessage
|
||||
mov al,'o' ;the byte we wish to check
|
||||
mov cx,5 ;len(Test)
|
||||
|
||||
repnz scasb ;scan through the string and stop if a match is found.
|
||||
;flags will be set accordingly
|
||||
ret
|
||||
|
||||
TestMessage byte "Hello"
|
||||
Loading…
Add table
Add a link
Reference in a new issue