retagged by
1,087 views
0 votes
0 votes
Consider a processor that includes a base with indexing addressing mode. Suppose an instruction is encountered that employs this addressing mode and specifies a displacement of 1970, in decimal. Currently the base and index register contain the decimal numbers 48,022 and 8, respectively. What is the address of the operand?
retagged by

1 Answer

1 votes
1 votes

@Sagar475

For base with indexing address mode:-

Address of operand

= (contents of base register + contents of index register + displacement)

=48022+8+1970

= 50000 ….

 

 

If displacement is not taken into consideration then address will be (base + index)

=48022+8

=48030 ….

 

For scaled indexing (factor=4) ….

 

Address of operand

= (base + index*factor + displacement)

= 48022+(8 x 4)+1970

= 50024 .…