Assembly 指向内存中的下一个地址(MIPS)
在我的代码中,我给整数指定了4个空格,我想在指针上加上(4)以指向下一个整数 例如:Assembly 指向内存中的下一个地址(MIPS),assembly,mips,Assembly,Mips,在我的代码中,我给整数指定了4个空格,我想在指针上加上(4)以指向下一个整数 例如: .date int: .space 4 .text main: addi $t2,$t2,4 addi $t3,$t3,2 syscall sw $t2,$int syscall #now I want to add 4 to int for next integer that it is in $t3 我该怎么做? 谢谢没有下一个整数.space 4混响4个字节的空间,足以容
.date
int: .space 4
.text
main:
addi $t2,$t2,4
addi $t3,$t3,2
syscall
sw $t2,$int
syscall
#now I want to add 4 to int for next integer that it is in $t3
我该怎么做?
谢谢没有下一个整数
.space 4
混响4个字节的空间,足以容纳一个32位整数。要向寄存器添加立即数,请使用addi
。请参阅MIPS指令集参考。