看起来很简单,但我认为我的程序不会编译,因为我覆盖了$ v0寄存器?提前致谢
更新:没关系得到它,当我打印系统调用打印总和时我的订单错了...修复以防万一需要参考.
.data
prompt1: .asciiz "\n\n Enter the first integer please:"
prompt2: .asciiz "Enter the second integer please:"
result: .asciiz "The result is:"
.text
main:
#t0-to hold first integer
#t1-to hold second integer
#t2- used to hold the sum of t$1 and t$2
#first number
li $v0, 4 #syscall to print string
la $a0, prompt1 #address of string to print
syscall
li $v0, 5 #syscall to read an integer
syscall
move $t0, $v0 #move the number to read into …Run Code Online (Sandbox Code Playgroud) 我有我的实例正在运行并且能够远程连接但是我被困在哪里将此参数设置为false,因为它声明默认设置为true:
failIndexKeyTooLong
Run Code Online (Sandbox Code Playgroud)