Question: Recall the basic cpu architecture given in the book and presented in class. As a reminder, the CPU has a PC, IR, and an AC

Recall the basic cpu architecture given in the book and presented in class. As a reminder, the CPU has a PC, IR, and an AC register. You can assume that the PC and AC registers will be initialized to zero when the cpu starts. Each instruction is 16 bits long. The first four bits form the opcode, and the rest of the bits form an address to a memory location. There will be a total of 16 (24 ) instructions for this architecture. List eight instructions (Not given in the book) for this cpu, and for each instruction, explain what it does and why you feel it is necessary or useful to have it.

Hints

Try thinking of complex tasks that one might do often. Can you create a single instruction that does most of the work?

Dont forget flow of control. There should be at least one conditional jump and one unconditional jump.

Each instruction provides a single address. Binary operations will need the AC register. Can you create an instruction that directly operates on two addresses?

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!