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 9226299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:47:45+00:00 2026-06-18T04:47:45+00:00

Just a precaution. I’m a complete noob on assembly. My only question is that

  • 0

Just a precaution. I’m a complete noob on assembly. My only question is that only the following commands in DOS:

MOV  AH, 09
INT  21

MOV  AX, 4C01
INT  21

Does the second interrupt still have the parameter 09 meaning display screen or does the AX change that in some way?

  • 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-06-18T04:47:47+00:00Added an answer on June 18, 2026 at 4:47 am

    You need to search for Ralf Brown’s Interrupt List, it’s the definitive guide to these old DOS/Windows interrupts.

    Calling INT 21h with AH = 09H outputs a $-terminated string located at DS:DX to the console.

    Calling INT 21H with AH = 4cH exits your program with the return code in AL (01H in this case).

    The second call will not have AH set to 09H simply because AH is simply the upper 8 bits of AX. The second MOV sets AH to 4cH as part of setting AX:

    enter image description here


    In more detail (from Wikipedia):

    enter image description here


    This register-made-from-other-registers has a long history at Intel with:

    • ax being made up of ah and al;
    • eax being made up from 16 bits plus the other 16 from ax;
    • rax being made up of 32 bits plus the other 32 from eax.

    along with similar approaches for the other general purpose registers and special registers like index or base registers, and the stack pointer.

    Interestingly enough, they didn’t duplicate the ability to access the high halves of the expanded registers, such as with eax being made up of eah and eal (both mythical, but the latter being an alias for ax).

    That would have given us a large cache of extra small registers in higher modes, though I’m not sure what the cost would have been (no doubt Intel/AMD do know the cost and it was probably deemed too expensive).

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

Sidebar

Related Questions

Just learning C++, encountered an issue that i'm not really sure why the following
Just have a quick question about the GAC I created an assembly Awesome.DLL. Had
Just recently I've installed the Qt libraries on my computer, and as a complete
Just a knowledge question which I would like to ask: For example, I have
Just a simple question, but can't get an answer on my own. In memory
I'm not sure if I'm even asking this question correctly. I just built my
Just a quick question as I'm struggling to get my Web Service working. Basically
Just want to mention that I am really a newbie in API development (concepts,
Just wondering. I have a page in Jquery Mobile which uses a popup that
Just now I read char is the only unsigned integral primitive type in Java.

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.