arisu1love
Newbie level 5
View attachment source codes.7z
Hi everyone, I urgently need help for my lab assignment for CPU32 debugging. There are 5 bugs which is existent in the source codes which I have attached. The problem is, I totally do not know how to begin to debug them! This thing is really new and the assignment was just given and I am totally helpless.
Could anyone kindly help in debugging the source codes?
The 5 bugs are:
1. CCR values are lost
2. Subroutines don't return
3. Skipped instruction following false branch instructions
4. Jump instructions fail to jump
5. Operand 2 mux on ALU is incorrect for some instructions
I have trouble understanding and locating the bugs...
Thank you very much! If anyone could help me with this, it would be a lifesaver, really.
Hi everyone, I urgently need help for my lab assignment for CPU32 debugging. There are 5 bugs which is existent in the source codes which I have attached. The problem is, I totally do not know how to begin to debug them! This thing is really new and the assignment was just given and I am totally helpless.
Could anyone kindly help in debugging the source codes?
The 5 bugs are:
1. CCR values are lost
2. Subroutines don't return
3. Skipped instruction following false branch instructions
4. Jump instructions fail to jump
5. Operand 2 mux on ALU is incorrect for some instructions
I have trouble understanding and locating the bugs...
Thank you very much! If anyone could help me with this, it would be a lifesaver, really.