in CO and Architecture
3,313 views
2 votes
2 votes
A computer supports one address and two address instructions. All the Addresses are the memory addresses. Memory size is 1Mbyte. How many one address instructions are possible if it has 240 two addresses instructions? (Assume binary instructions code has 48 bits)
in CO and Architecture
by
3.3k views

1 Answer

2 votes
2 votes
Best answer

 in this problem  total size of instruction code = 48 bit

  memory address = 20 bit

  in two address mode =    tag + address1 + address2

                                    =  8  + 20 + 20

       given that  240  is two address instruction

remaining  =  2^8 -  240

                 =  256 - 240 = 16

 hence  one address instruction  =  16* 220   =  224   

selected by

4 Comments

sir but how did we get memory address=20?
0
0

@ritus

Memory Size = 1 MB = 220 B ===> 20 bits required to identify one Byte in this architecture

1
1
but there will be 23 bit not 20 because  it's 1mbyte
0
0

Related questions

2 votes
2 votes
2 answers
2
0 votes
0 votes
1 answer
4
lea asked in CO and Architecture Jun 12, 2023
298 views
lea asked in CO and Architecture Jun 12, 2023
by lea
298 views