Newer
Older
emul / sample / fibonacci_arg.asm
@takayun takayun on 28 May 2016 218 bytes rename sample program
add  $s0 $zero $a0
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