RosettaCodeData/Task/Binary-strings/8086-Assembly/binary-strings-2.8086
2023-07-01 13:44:08 -04:00

11 lines
295 B
Text

;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"