We have 16 bits for instructions- no. of encoding = $2^{16}$
Since, 6 bit addresses are used, and we have $n$ two address instructions it would take $2^6 \times 2^6 \times n$ encoding.
Given, only one address and two address instructions are present. So, all remaining encoding can be used for one address instructions which will be $2^{16} - 2^{12} \times n$ which will correspond to $\left(2^{16} - 2^{12} \times n \right) /2^6 = 2^{10} - n \times 2^6 $ one address instructions as address field needs $2^6$ bits.
http://www.personal.kent.edu/~aguercio/CS35101Slides/Tanenbaum/CA_Ch05_PartII.pdf
Thanks
This is the ans
Your answer is right, but my confusion is:
The number of opcodes for one address will be 10 right, since the computer uses expanding opcode?? So wont we get 2^10 instructions for opcode for one address?
64.3k questions
77.9k answers
244k comments
80.0k users