Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Assembly 指向内存中的下一个地址(MIPS)_Assembly_Mips - Fatal编程技术网

Assembly 指向内存中的下一个地址(MIPS)

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个字节的空间,足以容

在我的代码中,我给整数指定了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指令集参考。