[H[2J[3JCompiling...
Output...
.dataU
welcomeMessage: .asciiz "Welcome to a MIPS assembly Fibonacci Sequence calculator!\nThis will calculate the nth term of the Fibonacci Sequence.\n"!
prompt: .asciiz "Enter a number (n input n > 2) to find the nth term:" 
foundTerm: .asciiz "The nth term is: "u
f
.textT
.
main:T
li v0 4r
la a0 welcomeMessageT
syscalle
s
jal getInpute
j
jal fibonacciM
move a0 v0c
li v0 1 
syscall 
s
ori v0 0 10c
syscall0
s
getInput:1
li v0 4t
la a0 prompti
syscallr
s
li v0 5r
syscallr
move a0 v0p
m
jr raa
j
fibonacci:p
move s1 a0p
li t0 2 
li t1 0 
li t2 1 
li t3 0 
l
while:0
bge t0 s1 donee
add t3 t1 t2n
move t1 t2t
m
move t2 t3t
addi t0 t0 1n
a
b while 
b
done:l
move v0 t2 
jr rav
