1,303 views
1 1 vote
Consider a hypothetical CPU which supports 16-bit instruction, 64 registers and 1 KB memory space. If there exist 12 2-address instructions which use register references and 12 1-address memory reference instructions then how many 0-address instructions are possible?

2 Answers

Best answer
4 4 votes

Total number of possible instruction encoding = 2^16

This CPU has three type of instructions

Number of possible instruction encoding for Type I (2 address instruction)= 12 * 2^6 * 2^6

Number of possible instruction encoding for Type II (1 address instruction)= 12 * 2^10

Let number of possible instruction encoding for Type III (0 address instruction) be x

Since , Type I+ type II+ Type III= 2^16

=> 12 * 2^6 * 2^6 + 12 * 2^10 + x = 2^16

=> x = 4096

Number of zero address instruction possible = 4096

 

• selected by
3 3 votes

Correct answer: 4096 0-address instructions.

 

Position:
Show:

Related questions

2 2 votes
1 1 answer
1.6k
1.6k views
Na462 asked Jan 16, 2019
1,591 views
In a 16-bit instruction format, the size of the address field is 7 bits. The computer uses an expanding opcode technique. It has 2, two address instructions and 250 one a...
2 2 votes
0 0 answers
1.8k
1.8k views
Gupta731 asked Nov 15, 2018
1,849 views
How they have calculated the memory address part?
1 1 vote
2 2 answers
1.9k
1.9k views
3 3 votes
2 answers 2 answers
2.9k
2.9k views
khushtak asked Jan 21, 2016
2,860 views
The format of a double operand instruction of a CPU consist of 4 bit op-code and 4 bits for source and destination. 12 double operand instructions and 24 single operand i...