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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:38:43+00:00 2026-06-04T21:38:43+00:00

Hello I am writing assembly code for 8086 but I am wondering how does

  • 0

Hello I am writing assembly code for 8086 but I am wondering how does CPU differentiate between for example

AND AX, [memoryaddress]
and
AND AX, memoryaddress

we are putting [] around it to indicate that it should be replaced by that addresses contents but CPU sees a instruction like that

00 01 1101001

How does it know if it should add the value 1101001 or the contents of the address 1101001.

I am thinking of there are more than one ADD command and their opcodes are different like (ADDTHECONTENTS and ADDTHEVALUE) but a86 allows us to just say ADD because we can easily differentiate the semantics from the [] syntax. This seems logical but I am not sure about that so I wanted to ask, if there are many opcodes for instructions corresponding to different addressing modes.

  • 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-04T21:38:46+00:00Added an answer on June 4, 2026 at 9:38 pm

    The difference is in the opcode. There are multiple ADD opcodes (with numeric values 0, 1, 2, 3, 4, 5) and they differ exactly in how long arguments they expect, and what they do with the arguments.

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

Sidebar

Related Questions

Hello I am new to android programming, I haven't started writing the code for
Hello I am writing some jquery usefuls plugins, but I am asking where should
Hello I'm writing an sql query But i am getting a syntax error on
I'm writing a hello world example using ASP.net MVC 2 framework with two text
Writing a compiler in school, last milestone is generating assembly code. Trying to learn
Hello Fellow stackoverflowers, I´m stuck writing a piece of code. I have application with
Hello there i'm writing a code for c2dm with php this is the code
Hello Im currently writing a product syncronisation script for magento. I know how to
Hello I am writing some data structures in C, and I've realized that their
Hello I am using LibXML to parse an rss feed and I am wondering

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.