1,135 views
1 votes
1 votes

Consider a system which supports only 1-address type instructions. The size of memory the system has is $2^m$ KB. The system supports ' i ' distinct instructions. The length of an instruction is ____ Bytes

Options

1 Answer

Best answer
4 votes
4 votes

Ans will be none

The reason behind this is that 1-address type instruction contains two-part opcode and operand.

opcode will require a decoded form of how many instructions were given ie. $\log_2i$

operand will be decoded form of size of memory ie. $log_2({2^m} KB) = \log_2(2^{m + 10}) = m + 10$ 

Therefore, length of instruction is $\log_2i + m + 10$ bits $=$ $\frac {(\log_2i + m + 10)}{8}$ bytes

selected by

Related questions

0 votes
0 votes
1 answer
4
tishhaagrawal asked Dec 5, 2023
327 views
Can anybody explain why are they dividing the number of pages by page size?According to me, it should be – Page table size = Number of entries * entry sizei.e PT size =...