2024-09-03 15:34:17 -05:00
|
|
|
main:
|
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r31, r254, 0a, 8h
|
|
|
|
LI64 r2, 10d
|
|
|
|
JAL r31, r0, :fib
|
|
|
|
LD r31, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
fib:
|
2024-09-09 12:36:53 -05:00
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
ST r31, r254, 0a, 24h
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r32, r2
|
2024-09-09 12:36:53 -05:00
|
|
|
LI64 r33, 2d
|
|
|
|
JGTS r32, r33, :0
|
2024-09-03 15:34:17 -05:00
|
|
|
LI64 r1, 1d
|
|
|
|
JMP :1
|
2024-09-10 05:13:01 -05:00
|
|
|
0: ADDI64 r33, r32, -1d
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r2, r33
|
|
|
|
JAL r31, r0, :fib
|
|
|
|
CP r33, r1
|
|
|
|
ADDI64 r32, r32, -2d
|
|
|
|
CP r2, r32
|
|
|
|
JAL r31, r0, :fib
|
|
|
|
CP r32, r1
|
2024-09-09 18:15:18 -05:00
|
|
|
ADD64 r1, r33, r32
|
2024-09-09 12:36:53 -05:00
|
|
|
1: LD r31, r254, 0a, 24h
|
|
|
|
ADDI64 r254, r254, 24d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-10 05:13:01 -05:00
|
|
|
code size: 228
|
2024-05-19 11:20:42 -05:00
|
|
|
ret: 55
|
2024-05-10 15:54:12 -05:00
|
|
|
status: Ok(())
|