Monday, 18 May 2015

Q12,paper 2, D 12.In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register ?


(A) Absolute
(B) Indirect
(C) Immediate
(D) Index
Answer (D)
Explanation.
Absolute or direct : - The effective address for an absolute instruction address is the address parameter itself with no modifications.
Indirect:- (Effective PC address = next instruction address or some register + offset,
Immediate:- This "addressing mode" does not have an effective address, and is not considered to be an addressing mode on some computers. The constant might be signed or unsigned. For example move.l #$FEEDABBA, D0 to move the immediate hex value of "FEEDABBA" into register D0.
Index:- (Effective address = address + contents of specified index register) For example array starts from a memory location X. first array element is stored at x,and next element of array is stored at X+1 and so on. Which element of the array is to be processed is kept in the index. And effective address is found by adding the subscript of array in X.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.