Professional Documents
Culture Documents
The address
Ans2:-
field has the value 300. A processor register R1 contains the number 100. Evaluate the
effective
address if the addressing mode of the instruction is : 1. Immediate 2. Direct 3. Register
Indirect
4. Relative 5. Index with R1 as the index register.
Ans 3:- The description given in the assignment can be represented like this:
Location _ Contents
Direct addressing means that the address field contains the address of memory location the instruction is
supposed to work with (where an operand "resides").
Immediate addressing means that the address field contains the operand itself.
Relative addressing means that the address field contains offset to be added to the program counter to
address a memory location of the operand.
Register indirect addressing means that the address of an operand is in the register. The address field in
this case contains just another operand.
There are several possible indexed addressing modes but in this case (tehre is an address field) it is co
called "indexed absolute" addressing.
In indexed absolute addressing the effective address is calculated by taking the contnts of the address field
and adding the contents of the index register.