Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,如果我要读取的文件有:
总和:.word 0
我将如何读取 sum 的值并将其存储到另一个 files 变量中?
使用 QtSpim 时访问另一个源文件中定义的符号没有什么特别之处。只需加载所有源文件,然后按运行按钮。
一个例子:
foo.s
.globl main .text main: # Print sum lw $a0, sum li $v0,1 syscall # Exit li $v0,10 syscall
酒吧.s
.data sum: .word 123