You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main: addi x9, x0,30 # size = 30, change this for demoadd x10, x0, x18 # x10 = 0+ x18, x18 is tempArray[0] jal x1, assign jal x0, exitassign: # x10 holds the base address where the array should be stored addi x5, x0,31 sw x5,0(x10) addi x5, x0,7 sw x5,4(x10) addi x5, x0,16 sw x5,8(x10) jalr x0, x1(0) exit: li a7,93 # Load the syscall number for exit into a7 li a0,0 # Load the exit status into a0 (0 typically means success) ecall
If you store a few more integers in memory in assign function, then ripes doesnt stop running the code. Once exit is reached, it starts from top of the code again.
Here is the code that runs infinitely:
main: addi x9, x0,30 # size = 30, change this for demoadd x10, x0, x18 # x10 = 0+ x18, x18 is tempArray[0] jal x1, assign jal x0, exitassign: # x10 holds the base address where the array should be stored addi x5, x0,31 sw x5,0(x10) addi x5, x0,7 sw x5,4(x10) addi x5, x0,16 sw x5,8(x10) addi x5, x0,4 sw x5,12(x10) jalr x0, x1(0) exit: li a7,93 # Load the syscall number for exit into a7 li a0,0 # Load the exit status into a0 (0 typically means success) ecall
You can store more variables in the same way and issue still insists.
The text was updated successfully, but these errors were encountered:
Here is the code that works fine:
If you store a few more integers in memory in assign function, then ripes doesnt stop running the code. Once exit is reached, it starts from top of the code again.
Here is the code that runs infinitely:
You can store more variables in the same way and issue still insists.
The text was updated successfully, but these errors were encountered: