retagged by
374 views
0 votes
0 votes

Why 50 * 3 and not 50+3 ?

Does every Byte requires different instruction ?

 

retagged by

2 Answers

2 votes
2 votes
  • Bits required for registers = log( 24 ) = 5bits
     
  • Bits required for instruction = log( 25 ) = 5bits
     
  • Instruction size = 5+5+5+5 = 20bits
    since memory is byte addressable, every instruction will be stored in ceil(20/8) = 3 bytes
     
  • number of instructions in program = 50
     
  • memory required = 50*3 = 150bytes
0 votes
0 votes
See each instruction is require 5 bits for opcode ,two 5 bits for source registers and one 5 bit for destination register so making a total of 20 bits which means we need 3 bytes for every instruction now program length is of 50 instructions making a total of 50*3=150 bytes

Related questions

0 votes
0 votes
0 answers
1
HeadShot asked Dec 11, 2018
410 views
Answer : Option A Doubt : 0 repeated n-1 times and a single 1 , then how <0,n ?
0 votes
0 votes
0 answers
4
HeadShot asked Dec 11, 2018
356 views
Answer : Option C Please explain ( Why do we need to assume that there were seperate tables related to customer and store ? )