You will finish a tiny computer that runs a program through the fetch-decode-execute cycle. The memory holds the program and the data together, as in a Von Neumann computer.
Your tasks.
fetch, copy the PC to the MAR, the memory at the MAR to the MDR and the MDR to the CIR. Then add 1 to the PC.execute, make the instruction ADD add the value at its address to the ACC.answer to the value at address 22 after the program has run.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…