我试图看看我的main方法中的变量($ a2)是否大于0.如果它更大,$ v1应该变为7,如果它小于或等于$ v1应该变为10并且函数将返回相应的号码。当我运行代码时,无论如何都会返回10。对我做错了什么建议?
fme:
addi $t0, $zero, 0 #setting $t0 equal to 0
bgt $a2, $t0, GREATER
ble $a2, $t0, NOTGREATER
GREATER:
addi $v1, $zero, 7
NOTGREATER:
addi $v1, $zero, 10
jr $ra