forked from AbleOS/holey-bytes
29 lines
549 B
Plaintext
29 lines
549 B
Plaintext
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:
|
|
ADDI64 r254, r254, -32d
|
|
ST r31, r254, 0a, 32h
|
|
CP r32, r2
|
|
LI64 r33, 2d
|
|
JGTS r32, r33, :0
|
|
LI64 r1, 1d
|
|
JMP :1
|
|
0: ADDI64 r2, r32, -1d
|
|
JAL r31, r0, :fib
|
|
CP r34, r1
|
|
SUB64 r2, r32, r33
|
|
JAL r31, r0, :fib
|
|
ADD64 r1, r1, r34
|
|
1: LD r31, r254, 0a, 32h
|
|
ADDI64 r254, r254, 32d
|
|
JALA r0, r31, 0a
|
|
code size: 212
|
|
ret: 55
|
|
status: Ok(())
|