Concept explainers
Immediate addressing mode:
In immediate addressing mode, the instruction is immediately followed by the data which means that the data that is to be used is already given in the instruction itself.
Example:
ADD R4, #4
This instruction is used to add the data 4 immediately with the contents of register R4.
Direct addressing mode:
The address of the instruction that includes address of an operand is known as direct addressing.
Example:
MOV R3, 46H
This instruction is used to move the data present at the location 46H to register R3.
Indirect addressing mode:
The address of the instruction that includes actual operand is known as indirect addressing.
Example:
MOV R2, 37H
This instruction is used to move the content of address present at 37H to register R2.
Indexed addressing mode:
The address of the operand is acquired by aggregating the contents related to general register to index register that contains constant value.
Example:
MOV R3, R4÷DPTR
This instruction is used to move the content of the register and given constant memory location to register R3.
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Essentials of Computer Organization and Architecture
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education