Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6181129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:57:57+00:00 2026-05-24T00:57:57+00:00

The following is close to my question, still I have a missing link, that

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:57:58+00:00Added an answer on May 24, 2026 at 12:57 am

    Those are the bytes that represent the instruction’s themselves, Prefix bytes (up to 4 I believe), primary opcode (1 or 2), optional MODRM and SIB bytes, displacement bytes, and finally the immediate operands (if any). The machine interprets those bytes depending on the prefix and the primary opcode of the instruction. If you really want to find out you can find tables that show you what those are in binary.

    Processors don’t interpret the instructions as mnemonics, the mnemonics are only their so it’s easier for you to write the code. These mnemonics are changed by the compiler into something the computer can understand which is bytecode or raw binary data. The hardware takes over from that point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have used following code to repeat a process creation/close iteratively dim vProcessInfo as
Let's consider the following example. I have a parent process that creates a pipe,
I want to capture the browser window/tab close event. I have tried the following
I would like to have a button on a web page with the following
I have written a function that creates a barplot. I would like to save
I'll preface this question with the note that I have looked at this similar
I have to following XML document structure: <option_set id=1> <option>Yes</option> <option>No</option> <option>Maybe</option> </option_set> <question
I am having the following close button image tag in my page. img src=@@@HtmlEncode(LanguagePath)@@@/img/header/HEADER_SIGN_IN_POPIN_CLOSE.gif
The following code works fine #define open { #define close } #include<stdio.h> #define int
In the following code: tcp::socket socket(io_service); tcp::endpoint ep(boost::asio::ip::address::from_string(addr), i); socket.async_connect(ep, &connect_handler); socket.close(); is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.