Calculating the maximum possible number of processor commands

There is a risc architecture processor with 16 programmatically available registers. All commands, except those with direct addressing, must be encoded using 2 bytes. The number of three - address commands is known - 13, unaddressed-36. Calculate

  1. Maximum possible number of two-address commands
  2. Maximum possible number of unicast commands
  3. The number of unicast and two-address commands, based on their approximate number equalities
Author: MSDN.WhiteKnight, 2014-01-30

1 answers

In this task, the RISC or CISC architecture does not play a role. It's just math:

  1. 16-registers = 2^4 -> 4 bits for address encoding.
  2. only 2 bytes per code = 16 bits.
  3. it is not clear why information about three-address and non-address commands is given. since the maximum number of two-address commands is = 2^( 16 - 4*2 ) = 256. 16 only 8 bits are given for addressing.
  4. maximum number of unicast addresses = 2^( 16 - 4 ) = 4096.
  5. on the 3rd point I find it difficult to answer. because it is not quite clear.

Most likely, I miss something or do not understand the conditions correctly, perhaps there are restrictions. and you need to take into account the known number of commands as restrictions. Let the author clarify.

 0
Author: Антон Лакотко, 2014-01-30 11:33:22