in CO and Architecture retagged by
454 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?
in CO and Architecture retagged by
454 views

4 Comments

can anybody guide me from where do i can under stand these concept more accurately
0
0
here i am not able to understand the meaning of "specifies a displacement of 1970"
0
0
3
3

@palashbehra5 Thanks a lot bro

0
0

1 Answer

0 votes
0 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 .…

 

by