I was given the task of making a program or code of sorts that mimics how a CPU would work. I was really confusing to start it off with because it was a fairly short topic but I think it worked out okay and was a lot more simple than i thought. I put it in my GitHub below.
examples of then outputs and there many of them:
ADD: $r3 = $r1 + $r2 -> 15
Program Counter (PC): 3
Registers:
$r0: 0
$r1: 5
$r2: 10
$r3: 15
$r4: 15
$r5: 10
Top comments (4)
Nice done! Remembered my days in college on Computer Architecture first lessons.
It was a lot to read through but very insightful.
Let me know what you think.
Good job! Reminds me of my first simulator.