伪指令上的PCSpim语法错误 [英] PcSpim syntax error on pseudo instructions

查看:124
本文介绍了伪指令上的PCSpim语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用诸如li或la之类的指令,我会不断收到语法错误.如果我在没有这些说明的情况下尝试代码,则效果很好,但是我需要使用它们.我尝试了不同的版本,并且不断收到相同的错误(我允许使用伪指令).我需要将其用于大学项目,但由于无法运行代码,因此无法检查编写的代码是否正常. 我想念什么吗?我不知道如何使其正常工作,我是组装和pcspim的新手,所以我可能忽略了一些愚蠢的事情.

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.

更新:如果我使用PcSpim,我将无法获得任何代码.我尝试使用QtSpim和MARS来测试我的代码,他们都读取了代码(尽管仍然不正确).关键是我必须在项目中使用PcSpim,所以我需要使其运行.

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)映射的I/O (2)允许伪指令

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

取消选中所有其他项.

这帮助我消除了此错误

这篇关于伪指令上的PCSpim语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆