Okay, i started learning 8086 assembly like month ago, and up until now i didn't have much problems learning it, but now i am stuck with strings. The problem is how can i Iterate over a string in 8086 and manipulate the characters? Also i have a task for my microprocessors course to remove all the ' characters from a given string (the string "proce'so'r" in my code) and then compare the newly acquired string with the first one and check if they are equal . The thing is i don't even know how to iterate it. It really was not explained in class, so i ask for help here. Here is my code so far (just for string iteration and printing the characters and it does not work, don't know why):
data segment
string db "proce'so'r"
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
lea di, string
mov cx, 10
for:
cmp cx, 0
je end
mov dl, [di]
mov ah, 02h
int 21h
inc di
loop for
end:
mov ax, 4c00h
int 21h
ends
end start