edited by
724 views
0 votes
0 votes
In a 16-bit computer instruction format, the size of the address field is 5 bits. The computer uses an expanding opcode technique. It has two 2-address instructions and 1024 one-address instructions. How many zero-address instructions can be formulated?
edited by

2 Answers

0 votes
0 votes
opcode(6bit) address(5) address(5)

#f opcodes = 2^6 =64

#f two address instruction in use =2

free opcodes =64-2=62

62*2^5 =1984 one address instruction can be formed

#f one address inst in use = 1024

free one address inst are = 1984-1024 =960

960*2^32 =30720 zero instructions can be formed

Related questions

1 votes
1 votes
1 answer
1
AakS asked Jul 23, 2017
2,793 views
What is the difference between LOAD/STORE & MOVE instructions?Are they CPU - architecture dependent?