# PROGRAM TO COMPute FIBONACCI

P1: LOADI.LO r1, 1 
P1: loadi.lo R2, 100
# R1 and R2 keep for loop repetition
P1: loadi.lo r3,1
P1: loadi.lo R4,0
# R3 and R4 first 2 terms of fibonacci

P1:padd.8 R5,R3,R0
#R0 contaions 0 and R5 is tmp
P1: padd.8 R3, R3,R4
P1: padd.8 R4, R5, R0

P1: psub.2 R2,R2,R1
P1: cmp.gt R2, R0, P1, P2
P1: jmp -32

P2: padd.8 R10, R3, R0
