Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将这个小的 c 代码转换为 mips,但我很好奇如果我做得正确,是否有人能够查看并查看它?尝试正确学习 mips。想看看我是否掌握了窍门。在这里使用 4 个寄存器。
for (i=0; i<a; i++) a += b; li $t0,0 loop: bge $t0,$s0,exit_loop addi $t0,$t0,1 add $s0,$s0,$s1 j loop exit_loop: