data segment
str db "hello$"
str2 db "world$"
data ends
adds macro a,b
lea si,a
lea di,b
endm
subs macro x,y
adds x,y
endm
code segment
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
subs str,str2
mov ah,4ch
int 21h
end start
code ends
The above is just an example, in case of integers works fine but in this case of strings why it doesn't replace x,y with str,str2??? plz help out me fast I need to work on it for the project. The error generated by it is:
