I made a program in which I am using an array. The problem is the program is not displaying a prompt on the screen which it should. Before I used array in this program, the prompt was working properly. Here is the code:
.data
User: .asciiz "\nEnter 10 number:\n"
Reverse: .asciiz "\nThe reverse order array is:\n"
array: .space 10
.text
main:
la $a0,User
li $v0,4
syscall
li $t1,0
li $t3,0 # counter
la $t0,array
j Input
Input:
li $v0,5
syscall
add $t2,$t3,$t0
sw $v0,0($t2)
addi $t3,$t3,4
beq $t1,9,ReverseInitialization
addi $t1,$t1,1
j Input
ReverseInitialization:
li $t3,36
la $a0,Reverse # NOT DISPLAYING THIS PROMTE
li $v0,4
syscall
j ReverseDisplay
ReverseDisplay:
lw $a0,0($t2)
li $v0,1
syscall
beq $t1,0,Exit
j ReverseDisplay