eel3792c_rv32i

RV32I implementation on a DE10-Lite FPGA for the EEL3792C course.
Log | Files | Refs

fibonacci.s (281B)


      1 main:	addi x3, x0, 0x0	
      2 		sw x0, 0x0(x3)
      3 		addi x5, x0, 1
      4 		sw x5, 0x4(x3)
      5 		addi x5, x0, 4
      6 		addi x9, x0, 0x3C
      7 		
      8 loop:	addi x5, x5, 4
      9 		addi x6, x5, -4
     10 		addi x7, x5, -8
     11 		lw x28, 0(x6)
     12 		lw x29, 0(x7)
     13 		add x30, x28, x29
     14 		sw x30, 0(x5)
     15 		blt x5, x9, loop
     16 done:	bne x5, x9 done