PcSpim syntax error on pseudo instructions

跟風遠走 提交于 2019-12-31 07:47:23

问题


I keep getting syntax error if i use instructions like li or la. If i try a code without these instructions it works fine, but i need to use them. I tried different versions and i keep getting the same error (I have allowed pseudo instructions). I need to use it for a university project but i can't check if the code i wrote is ok since i can't run the code. Am i missing something? I don't know how to make it work properly, i'm new to assembly and pcspim, so i may be overlooking something stupid.

Update: If i use PcSpim i can't get any code to work. I tried using QtSpim and MARS to test my code and they both read the code (although it's still not correct). The point is i have to use PcSpim for my project, so i need to get it running.


回答1:


Try ONLY selecting the two following Options in the Settings menu under Execution: (1) Mapped I/O (2) Allow pseudo instructions

uncheck all others.

This helped me removing this error




回答2:


Looks like you're missing the label main.




回答3:


Select the "Settings" menu and verify that "Permit extended (pseudo) instructions and formats" is checked.



来源:https://stackoverflow.com/questions/18724111/pcspim-syntax-error-on-pseudo-instructions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!