Home » Embedded Systems

Categories of Addressing Modes of 8086 Microprocessor

In this article, we are going to study about the various addressing modes of the 8086 microprocessor. We will first discuss what does addressing mode mean? After that, we will study their different categories in brief.
Submitted by Monika Sharma, on July 18, 2019

Addressing modes are the one which the where the operand (source or destination) are stored, i.e. any memory location or any internal register.

There are a few categories of addressing modes which are as follows:

  1. Immediate Addressing mode
  2. Register Addressing mode
  3. Data Memory Addressing Modes
  4. Program memory Addressing modes and
  5. Stack memory addressing mode

1) Immediate Addressing Mode

In this addressing mode, the operands are specified within the instructions. What this means is that the instruction will either contain the values itself or will contain the operands whose values are required.

Example:

    MOV AL, 28H
    ADD AX, 2314H

2) Register Addressing Mode

In this type of addressing mode, the operands (or the values) are stored within any of the internal registers itself. So, the processing on these operands is done either in those registers itself or by shifting their values to some other registers.

Some examples of Register Addressing mode are:

    ADD AX, BX
    MOV AL, BL
    SUB BL, AL

3) Data memory addressing modes

In these types of addressing modes, the offset address of the operands is mentioned in the instructions. So, in the Data Memory Addressing mode, first the offset address is calculated after that memory location is calculated, and then the data stored at that location is fetched.

Some examples of the Data memory Addressing modes are:

    MOV AL, [2000H]
    MOV AL, [BX]

The Data memory addressing mode is further categorized into various types about which we will discuss in the upcoming articles.

4) Program Memory Addressing Mode

These types of addressing modes are used in branch instructions like JMP or CALL instruction.

Example:

	JMP 0006H

Note: The Data memory addressing mode and the Program Memory Addressing mode are further categorized into various types about which we will discuss in the upcoming articles.

5) Stack Memory Addressing Mode

The stack memory addressing mode is used whenever you perform a push or pop operation. Always a word will be entered or popped from the stack in this addressing mode, and the value of the Stack Pointer (SP) will be incremented or decremented accordingly. The higher byte of data will be stored at SP-1 location and the lower byte of data will be stored at the SP-2 memory location.

Example:

    PUSH BX
    Here, suppose BX=1234H and SP=2000H

So, the byte 34H will be stored at 1999H and byte 12H will be stored at 1998H location.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.