QtSpim 异常发生在 PC=0x00000000

Mik*_*das 1 assembly qtspim

所以我刚刚开始在我的课程中使用 QtSimp,但我无法模拟单个程序

例如

.data        # Data declaration section
 hello_msg:   .asciiz "Hello World!\n";

    .text

main:                # Start of code section

    la $a0, hello_msg
    li $v0, 4
    syscall

    # Now do a graceful exit
    li $v0, 10
    syscall
Run Code Online (Sandbox Code Playgroud)

我将正常加载该文件,但当我尝试运行它时,出现以下错误:

Exception occurred at PC=0x00000000
Bad address in text read: 0x00000000
Attempt to execute non-instruction at 0x80000180
Run Code Online (Sandbox Code Playgroud)

这似乎是我迄今为止尝试过的任何程序的情况

QtSpim版本:9.1.4

小智 6

我有同样的问题。您的 QtSpim 未使用默认地址 0x00400000。您可以通过进入模拟器 -> 运行参数来设置它,并将开始运行程序的地址或标签的值从 0x00000000 更改为 0x00400000。