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 18:15:18 -05:00
|
|
|
ADDI64 r254, r254, -40d
|
|
|
|
ST r31, r254, 0a, 40h
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r32, r2
|
|
|
|
LI64 r33, 0d
|
|
|
|
LI64 r34, 1d
|
2024-09-09 12:36:53 -05:00
|
|
|
2: LI64 r35, 0d
|
|
|
|
JNE r32, r35, :0
|
2024-09-03 15:34:17 -05:00
|
|
|
JMP :1
|
2024-09-10 05:13:01 -05:00
|
|
|
0: ADD64 r35, r33, r34
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r33, r34
|
|
|
|
CP r34, r35
|
2024-09-09 18:15:18 -05:00
|
|
|
ADDI64 r32, r32, -1d
|
2024-09-03 15:34:17 -05:00
|
|
|
JMP :2
|
|
|
|
1: CP r1, r33
|
2024-09-09 18:15:18 -05:00
|
|
|
LD r31, r254, 0a, 40h
|
|
|
|
ADDI64 r254, r254, 40d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-10 05:13:01 -05:00
|
|
|
code size: 215
|
2024-05-11 11:16:27 -05:00
|
|
|
ret: 55
|
2024-05-10 15:54:12 -05:00
|
|
|
status: Ok(())
|