Question: Suppose we had a CPU design that can only do addq instructions as presented in the lecture, and we want to augment it to also

 Suppose we had a CPU design that can only do addq

Suppose we had a CPU design that can only do addq instructions as presented in the lecture, and we want to augment it to also support a new increment instruction: incq REGISTER Question 1 (4 points) (see above) Which machine code encoding for this instruction would be possible to implement and require the fewest changes to the logic between the instruction memory and the register file? A. 1 byte total; first byte: 0xE (most sig 4 bits), register number (least sig 4 bits); B. 1 byte total; first byte: register number (most significat 4 bits), 0xF (least sig 4 bits) C. 2 bytes total; first byte: 0xE0; second byte: 0xF (most sig 4 bits), register number (least sig 4 bits) D. 2 bytes total; first byte: 0x60; second byte: 0x1 (most sig 4 bits), register number (least sig 4 bits) E. none of the above; none of these are possible to implement Comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!