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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started