ASM with MOV instruction.
I know that this question is VERY misplaced, but I coundn't find anywhere else to post this question. So, I say now that I'm sorry.
The question is simple: what's wrong?
Code:
org 100h ; code starts at offset 100h
use16 ; use 16-bit code
mov ah,09h
mov dx,mello
int 21h
mov word [hello],word mello
mov dx,hello
int 21h
int 20h
hello dd ?
mello db 'Mello world!',0Dh,0Ah,24h
I want the output to be:
Mello, world!
Mello, world!
But, instead, it comes out as:
Mello world!
☺ Mello world!
I can't find out what is wrong with the second printing. I suspect that it has todo with the statement "mov word [hello],word mello"
By the way, I'm using FASM to assemble this.