In my computer organization and architecture class, we were assigned homework over this subject. I think I got the right answers, but I would be very grateful if someone could take a look at this for me.
http://pastebin.com/KT7Tf11k
the questions are.
11-A.) in a computer instruction format, the instruction length is 11 bits and the size of an address field is 4 bits. Is it possible to have
5 2-address instructions
45 1-address instructions
32 0-address instructions
using the format? justify your answer.
11-B.) Assume that a computer architect has already designed 6 2-address and 24 0-address instructions using the instruction format given in 11-A. What is the maximum number of 1-address instructions that can be added to the instruction set?