[Solved] tasm Error: illegal memory reference

The reason for the error is that two memory spaces cannot be exchanged directly, such as mov [di], [Si]. Register ax is required to save the following transfer values

mov ax, [si]
mov [di], ax

Error a2070: invalid instruction operations may be reported when compiling with MASM

Read More: