7. On a machine, an instruction is always 16 bits long, and the re are 16 registers. (1) Briefly explain the idea of expanding opcode. (5%) (2) Given this scheme of expanding opcode, identify how many three-address instructions, two-address instructions, one-address instructions, and zero- address instructions are supported. (10%) O 0000 xxxx yyyy zzzz 0001 xxxX yyyy ZZZZ 0010 xxxx yyyy zzZZZ 92 3-address SE instructions 0111 xxxx yyyy zzzz 1000 0000 yyyy zzZz 1000 0001 yyyy zzzz 1000 0010 yyyy zzzZ 2-address instructions 1111 1101 yyyy zzzz 1111 1110 0000 zzzz 1111 1110 0001 zzzz 1111 1110 0010 zzzz 1-address instructions 1111 1111 1110 zzzz 1111 1111 1111 0000 1111 1111 1111 0001 1111 1111 1111 0010 0-address instructions 1111 1111 1111 1111 Show transcribed image text 7. On a machine, an instruction is always 16 bits long, and the re are 16 registers. (1) Briefly explain the idea of expanding opcode. (5%) (2) Given this scheme of expanding opcode, identify how many three-address instructions, two-address instructions, one-address instructions, and zero- address instructions are supported. (10%) O 0000 xxxx yyyy zzzz 0001 xxxX yyyy ZZZZ 0010 xxxx yyyy zzZZZ 92 3-address SE instructions 0111 xxxx yyyy zzzz 1000 0000 yyyy zzZz 1000 0001 yyyy zzzz 1000 0010 yyyy zzzZ 2-address instructions 1111 1101 yyyy zzzz 1111 1110 0000 zzzz 1111 1110 0001 zzzz 1111 1110 0010 zzzz 1-address instructions 1111 1111 1110 zzzz
1111 1111 1111 0000 1111 1111 1111 0001 1111 1111 1111 0010 0-address instructions 1111 1111 1111 1111