The following is close to my question, still I have a missing link, that would help me understand the loading process.
How does DOS load a program into memory?
My question is "what will happen in machine step by step when I type mf.com in commandline?"
I am using windows 7 and I have installed NASM for compiling. The following is the assembly that I got in one of the website
The filename is mf.asm
org 100h
mov dx, msg mov ah, 9
int 21h ret
msg db "Hello, world !$"
I used the following command to get My mf.com file
nasm -f bin mf.asm -o mf.com
Now, I run the mf.com by typing
mf.com
I get the result Hello, World !$
I opened the mf.com binary in textpad and its shown like this.
0: BA 08 01 B4 09 CD 21 C3 48 65 6C 6C 6F 2C 20 77 ********Hello, w
10: 6F 72 6C 64 20 21 24 orld !$
The ******** were the respecive characters tha was showed in the text editors.
what will happen in machine step by step when I type mf.com in commandline and hit enter? especially "BA 08 01 B4 09 CD 21 C3" how would this 8 bytes be used?