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

  • Home
  • SEARCH
  • 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 7060037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:18:16+00:00 2026-05-28T04:18:16+00:00

An assembly program is converted to binary code and I ran a simple code

  • 0

An assembly program is converted to binary code and I ran a simple code in emulator for 8086. I excepted the IP to be 0004, instead it had been 0006.

MOV AX,21H
ADD AX,42H

I think IP should be 0004H, 0000 FOR MOV ,then 0000 to read 21H ,and same for ADD and 42H.

Whereas in emulator it is:

01000: B8 184
01001: 21 003
01002: 00 000 NULL
02003: 05 005
01004: 53 066
01005: 00 000 NULL

why is adding 01002 and 01005 to the code?and what does it mean?

  • 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-28T04:18:17+00:00Added an answer on May 28, 2026 at 4:18 am

    I think it’s because the ax register is 16 bits, so the constant is actually 16 bits as well (two bytes). It’s just that your constants are so small that you don’t notice that the upper byte is always zero.

    Try

    mov ax, 1234h
    

    and see whether that is different.

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

Sidebar

Related Questions

How to include any assembly code lines into my C program ? In turbo
How can I see the assembly code for a C++ program? What are the
I know how to get the assembly code of my program using gdb but
I have seen a assembly program written from a book about assemble: assume cs:code
In my MIPs Assembly Programming class I've been tasked with writing a program that
I am trying to create a small assembly program to create a folder. I
When attempting to run the following assembly program: .globl start start: pushq $0x0 movq
I am writing a program in assembly and it isn't working, so I'd like
In my program, how can I read the properties set in AssemblyInfo.cs: [assembly: AssemblyTitle(My
In my assembly language class, our first assignment was to write a program to

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.