invalid program counter value: 0

前端 未结 3 1310
伪装坚强ぢ
伪装坚强ぢ 2021-01-21 04:44

I\'m currently working with assembly language under the MIPS processor. I\'m currently using MARS simulator and for reasons unknown I get the following error message after every

3条回答
  •  终归单人心
    2021-01-21 05:28

    I know this question is old, but for anyone who was just like me and was desperately Googling for an answer: try doing the above syscall thing instead of a return, and try putting your main function before all other labels. Also, there's a "Initialize Program Counter to global "main" if defined" under the Settings menu; make sure that is checked. I do not know if enabling that allows you to put your main label after other labels, as I haven't tried that yet. What I have described is what I did to make it work, and nothing else. Good luck!

提交回复
热议问题