CPU SIMULATOR

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 i…


This content originally appeared on DEV Community and was authored by Brandon(Zoobob5)

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:
Image description

ADD: $r3 = $r1 + $r2 -> 15
Program Counter (PC): 3
Registers:
$r0: 0
$r1: 5
$r2: 10
$r3: 15
$r4: 15
$r5: 10

https://github.com/Zoobob5/CPU-Simulator


This content originally appeared on DEV Community and was authored by Brandon(Zoobob5)


Print Share Comment Cite Upload Translate Updates
APA

Brandon(Zoobob5) | Sciencx (2024-10-10T00:34:41+00:00) CPU SIMULATOR. Retrieved from https://www.scien.cx/2024/10/10/cpu-simulator/

MLA
" » CPU SIMULATOR." Brandon(Zoobob5) | Sciencx - Thursday October 10, 2024, https://www.scien.cx/2024/10/10/cpu-simulator/
HARVARD
Brandon(Zoobob5) | Sciencx Thursday October 10, 2024 » CPU SIMULATOR., viewed ,<https://www.scien.cx/2024/10/10/cpu-simulator/>
VANCOUVER
Brandon(Zoobob5) | Sciencx - » CPU SIMULATOR. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/10/cpu-simulator/
CHICAGO
" » CPU SIMULATOR." Brandon(Zoobob5) | Sciencx - Accessed . https://www.scien.cx/2024/10/10/cpu-simulator/
IEEE
" » CPU SIMULATOR." Brandon(Zoobob5) | Sciencx [Online]. Available: https://www.scien.cx/2024/10/10/cpu-simulator/. [Accessed: ]
rf:citation
» CPU SIMULATOR | Brandon(Zoobob5) | Sciencx | https://www.scien.cx/2024/10/10/cpu-simulator/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.