Question: Implement the fetch ( ) method for the fetch phase of a fetch / execute cycle. If you are following along in the unit test
Implement the fetch method for the fetch phase of a fetchexecute cycle. If you are following along in the unit test file, you will see there are unit tests before the fetch unit tests to test the loadProgram function. You have already been given all of loadProgram but you should read over this function and see if you understand how it works. Your implementation of fetch should be a simple single line of code if you reuse your peekAddress function. Basically, given the current value of the PC you want to use peekAddress to read the value pointed to by your PC and store this into the IR instruction register. How do I write the code?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
