Newer
Older
emul / sample / fibonacci.asm
@takayun takayun on 28 May 2016 238 bytes rename sample program
#DUMP DEBUG0
#RUN

addi  $s0 $zero 100
addi  $s1 $zero 0
addi  $s2 $zero 1
addi  $s3 $zero 0

#LABEL LOOP
add   $s3 $s1 $s2

add   $s1 $s2 $zero
add   $s2 $s3 $zero

slt   $t0 $s3 $s0
beq   $t0 $zero EXIT

#REGCAT $s3
j LOOP

#LABEL EXIT