Redirected
retagged by
9,971 views
–1 votes
–1 votes

An instruction is stored at location 300 with its address fields at location 301. The address field has the value 400. A processor register RI contain the number 200.

Evaluate the effective address if the addressing mode of the instruction is (a) Direct (b) Immediate (c) Relative (d) Register Indirect (e) Index with RI as the Index register.

retagged by

1 Answer

Best answer
5 votes
5 votes
a. Direct Addressing, Addess is given in instruction, so EA = 400
b. Immediate Addressing, Value is given in Instruction, so EA is the address of the address filed of the instruction. EA = 301
c. Relative Addressing, EA = Next Instruction Address - 400 For PC relative (Base relative also possible). So, probably 304 - 400 = -negative?
d. Register indirect, EA = ?
e. Index, EA = 200 + 400 = 600.
selected by

Related questions

0 votes
0 votes
0 answers
1
LavTheRawkstar asked Nov 4, 2016
364 views
What is the difference between Loosely Coupled microprocessor System and Tightly Coupled microprocessor system in simple words please tell and explain please??
1 votes
1 votes
1 answer
3
3 votes
3 votes
1 answer
4
LavTheRawkstar asked Nov 3, 2016
14,484 views
Starting from an initial value of R=11011101, determine the sequence of binary values in R after a logical shift-left, followed by a circular shift-right, followed by a l...