问题
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