# Find the largest Fibonacci number smaller than 100 .data .extern x 4 .extern y 4 x: .space 4 y: .space 4 .text .globl main main: sw $0,x # x = 0; addi $9,$0,1 # y = 1; sw $9,y lw $8,x while: # while (y < 100) { slti $10,$9,100 beq $10,$0,endw add $10,$0,$8 # int t = x; add $8,$0,$9 # x = y; sw $8,x add $9,$10,$9 # y = t + y; sw $9,y beq $0,$0,while # } endw: li $v0, 10 # system call for exit syscall # we are out of here.