In the direct address mode, the address part of the instruction is equal to the effective address. The operand would reside in memory, and the address here is given directly by the instruction’s address field. The address field would specify the actual branch address in a branch-type instruction.
In this article, we will take a look at the Direct Addressing Mode according to the GATE Syllabus for CSE (Computer Science Engineering). Read ahead to learn more.
Table of Contents
Direct Addressing Mode
The other name for the direct addressing mode is the absolute addressing mode. In this case, the instruction possesses the address of the actual location in the memory wherever the value of the given operand is stored.
Here, the address of any memory location refers to the effective address.
EA = A
For instance,
Add R2, A
Store R2, B
Here, the Add instruction would include the memory location A, which consists of the value that is to be added to the register R2 content. In a similar manner, the Store instruction contains the address of the memory location B in which the register R2 content will be stored. We have a figure below that shows the direct addressing of operand A in an Add instruction of the above-mentioned example.
Advantage
The direct addressing mode is actually the simplest of all the addressing modes.
Disadvantage
The direct addressing mode will provide very limited space for the address.
Keep learning and stay tuned to BYJU’S to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2024, GATE Admit Card, GATE Application Form, GATE Syllabus, GATE Cutoff, GATE Previous Year Question Paper, and more.
Also Explore,
Comments