2024-09-15 13:14:56 -05:00
|
|
|
fib:
|
2024-11-13 03:28:16 -06:00
|
|
|
LI64 r6, 1d
|
|
|
|
CP r7, r0
|
|
|
|
CP r1, r7
|
|
|
|
CP r12, r6
|
|
|
|
2: JNE r2, r7, :0
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-11-13 03:28:16 -06:00
|
|
|
0: ADD64 r3, r12, r1
|
|
|
|
SUB64 r2, r2, r6
|
|
|
|
CP r1, r12
|
|
|
|
CP r12, r3
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :2
|
2024-09-28 09:28:05 -05:00
|
|
|
1: JALA r0, r31, 0a
|
2024-09-20 04:01:10 -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
|
2024-09-15 13:14:56 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-13 03:28:16 -06:00
|
|
|
code size: 143
|
2024-09-15 13:14:56 -05:00
|
|
|
ret: 55
|
|
|
|
status: Ok(())
|