in CO and Architecture
1,695 views
1 vote
1 vote

 

in CO and Architecture
by
1.7k views

4 Comments

Ok Sry I haven't noticed that instruction size is given in words. and word size is given 32 bits(4 bytes) yes then answer should be 1004 i was assuming 1 word is 1 byte.
0
0
My above interpretation is right na Brother ?
0
0
yes according to me you are right brother..
0
0

2 Answers

0 votes
0 votes
1005 , because program counter will point to 1001 and  + 4 = 1005
0 votes
0 votes

QUESTION 2.16:

Solution:

Each word is of size: 32 bits = 32/8 Bytes = 4 Bytes.

Program has been loaded starting from memory location :1000.

Instruction Size                
2Words=8Bytes    1000    1001    1002    1003    1004    1005    1006    1007
1Word=4Bytes    1008    1009    1010    1011        
1Word=4Bytes    1012    1013    1014    1015        
2Words=8Bytes    1016    1017    1018    1019    1020    1021    1022    1023
1Word=4Bytes    1024    1025    1026    1027        
                 

After halt instruction memory location will be : 1027+1 = 1028.

Ans: 1028 Option D.

 

Hope it helps..!

Related questions