1,105 views

2 Answers

Best answer
4 votes
4 votes

Absolute (Direct) Mode:  The address of the operand is embedded in the instruction code.

$(i) \rightarrow \ (d)$

Displacement Mode:  Similar to index mode, except instead of the index register a base register will be used. The base register contains a pointer to a memory location. An integer (constant) is also referred to as a displacement. The address of the operand is obtained by adding the contents of the base register plus the constant. The difference between index mode and displacement mode is in the number of bits used to represent the constant. When the constant is represented a number of bits to access the memory, then we have the index mode. Index mode is more appropriate for array accessing; displacement mode is more appropriate for structure (records) accessing.

$(iv) \rightarrow \ (e)$

Index Mode:   The address of the operand is obtained by adding to the contents of the general register (called index register) a constant value. The number of the index register and the constant value are included in the instruction code. Index Mode is used to access an array whose elements are in successive memory locations. The content of the instruction code represents the starting address of the array and the value of the index register, and the index value of the current element. By incrementing or decrementing index register different element of the array can be accessed.

$(iii) \rightarrow \ (b)$

Register Mode:  The name (the number) of the CPU register is embedded in the instruction. The register contains the value of the operand. The number of bits used to specify the register depends on the total number of registers from the processor set.

$(ii) \rightarrow \ (a)$

selected by

Related questions

0 votes
0 votes
1 answer
1
lea asked Jun 12, 2023
290 views
0 votes
0 votes
1 answer
2
Aaryan_Sharma asked Dec 30, 2022
369 views
When we write MOV #1000 , it means we are writing the value 1000 into the accumulator. But when we write MOV 1000 here 1000 refers to address of what ? register or MM ? (...
2 votes
2 votes
1 answer
3
Subbu. asked Jul 14, 2022
495 views
Could you please explain How we can implement indirect addressing mode using Index addressing mode.. and vice versa..??