The Gateway to Computer Science Excellence
+3 votes
211 views

 Consider we have an instruction Load 1000. Given Memory and Register R1 as Follows.

What is  the actual value Loaded in the accumulator ?

A. 1000 1400 1300 1000

B. 1400 1300 1000 1000

C. 1000 1300 1400 1000

D. 1300 1000 1400 1000

in CO and Architecture by Loyal (6.8k points) | 211 views
0
A..?
0

Answer A is it right?

1 Answer

+6 votes
Best answer
Answer should be A)

Instruction we have LOAD 1000

Now

1)Immediate mode=here the operand is itself in the instruction so operand provided is 1000 it self so for immediate we have 1000 as operand

2)Direct mode= here the address of operand is given so address we have in the hand is 1000 so value at 1000 is actual operand we want so answer will be 1400

3)Indirect mode = here we have the address of loaction where the address of operand is present so from 1000 we have 1400 and form 1400 we have 1300 so answer is 1300

4)Index mode = here we have to add the content of Index register into the address provided in instruction ..so address whee the operand is present is 1000+200= 1200 so value at 1200 is 1000 so  our required operand is 1000

so answer A should be the correct one
by Boss (11k points)
selected by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,666 questions
56,167 answers
193,836 comments
93,997 users