25 lines
408 B
Plaintext
25 lines
408 B
Plaintext
fib:
|
|
LI64 r4, 1d
|
|
LI64 r5, 0d
|
|
CP r1, r5
|
|
CP r10, r4
|
|
2: JNE r2, r5, :0
|
|
JMP :1
|
|
0: ADD64 r3, r10, r1
|
|
SUB64 r2, r2, r4
|
|
CP r1, r10
|
|
CP r10, r3
|
|
JMP :2
|
|
1: JALA r0, r31, 0a
|
|
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
|
|
code size: 150
|
|
ret: 55
|
|
status: Ok(())
|