2024-09-05 04:16:11 -05:00
|
|
|
main:
|
2024-09-15 13:14:56 -05:00
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r31, r254, 0a, 8h
|
|
|
|
LI64 r2, 10d
|
2024-09-05 04:16:11 -05:00
|
|
|
JAL r31, r0, :fib
|
2024-09-15 13:14:56 -05:00
|
|
|
LD r31, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
2024-09-05 04:16:11 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
fib:
|
2024-09-08 05:00:07 -05:00
|
|
|
ADDI64 r254, r254, -40d
|
|
|
|
ST r31, r254, 0a, 40h
|
2024-09-05 04:16:11 -05:00
|
|
|
CP r32, r2
|
|
|
|
LI64 r1, 1d
|
2024-09-15 13:14:56 -05:00
|
|
|
LI64 r33, 2d
|
|
|
|
JGTU r32, r33, :0
|
2024-09-05 04:16:11 -05:00
|
|
|
JMP :1
|
2024-09-15 13:14:56 -05:00
|
|
|
0: SUB64 r2, r32, r1
|
2024-09-05 04:16:11 -05:00
|
|
|
JAL r31, r0, :fib
|
|
|
|
CP r34, r1
|
2024-09-15 13:14:56 -05:00
|
|
|
SUB64 r2, r32, r33
|
2024-09-05 04:16:11 -05:00
|
|
|
JAL r31, r0, :fib
|
2024-09-15 13:14:56 -05:00
|
|
|
CP r35, r1
|
|
|
|
ADD64 r1, r35, r34
|
2024-09-08 05:00:07 -05:00
|
|
|
1: LD r31, r254, 0a, 40h
|
|
|
|
ADDI64 r254, r254, 40d
|
2024-09-05 04:16:11 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-15 13:14:56 -05:00
|
|
|
code size: 208
|
2024-09-05 04:16:11 -05:00
|
|
|
ret: 55
|
|
|
|
status: Ok(())
|