CPU 模拟器
原文英文,约100词,阅读约需1分钟。发表于: 。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...
我编写了一个模拟CPU工作的程序,起初感到困惑,但最终发现并不复杂。我将代码上传到GitHub,展示了多个输出示例,比如ADD操作将$r1和$r2相加,结果存入$r3。程序计数器为3,寄存器状态为$r0: 0, $r1: 5, $r2: 10, $r3: 15等。