Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests - Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests -

Immediate Addressing Mode

In the immediate addressing mode, we specify the operand in the instruction itself. Or, in simpler words, instead of an address field, the immediate-mode instruction consists of an operand field. An operand field contains the actual operand that will be used in conjunction with an operation that is determined in the given instruction. The immediate-mode instructions help initialize registers to a certain constant value.

In this article, we will take a look at the Immediate Addressing Mode according to the GATE Syllabus for CSE (Computer Science Engineering). Read ahead to learn more.

Table of Contents

Immediate Addressing Mode

In the case of an immediate addressing mode, the operand’s value is mentioned explicitly in the instruction. Thus, we don’t require the effective address as the operand is defined explicitly in the instruction.

You can find the example of an immediate addressing mode below:

Add R2, #100

Store R2, 100H

Here, the Add instruction would add 100 to R2’s content. And the # sign present in front of the value would indicate the immediate value that is to be operated. Now, in case a value does not consist of a # sign in front of it, it is then the address of any memory location.

The instruction used next (Store) considers an immediate value of 100H as the address since it does not have a # sign in front of it. The instruction Store stores the content that is present in the R2 at memory location 100H. We have shown the instruction Store used in the above examples in the figure given below.

Advantage

The memory reference would NOT be required in the case of an immediate addressing mode since the value is present explicitly in the given instruction.

Disadvantage

This instruction format would provide a very limited size for the given operand. Thus, the immediate addressing mode includes a very limited space for an immediate value.

Keep learning and stay tuned to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2023, GATE Admit Card, GATE Syllabus, GATE Previous Year Question Paper, and more.

Also Explore,

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*