This question already has answers here:
Closed last year.
org 100h
mov ah, 9
mov dx, str1
mov byte [str1+2], [char]
int 21h
mov ah, 4Ch
int 21h
str1 db 'String$'
char db "o"
Why does NASM give me this error message:
Error on line 5: Invalid combination of opcode and operands
mov byte [str1+2], [char]
in this line I'm trying to move the byte stored on *char
to the address *str1+2
.