34 lines
665 B
Plaintext
34 lines
665 B
Plaintext
main:
|
|
ADDI64 r254, r254, -24d
|
|
ST r31, r254, 0a, 24h
|
|
LI64 r32, 10d
|
|
CP r2, r32
|
|
JAL r31, r0, :add_one
|
|
CP r32, r1
|
|
LI64 r33, 20d
|
|
CP r2, r33
|
|
JAL r31, r0, :add_two
|
|
ADD64 r1, r1, r32
|
|
LD r31, r254, 0a, 24h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
add_two:
|
|
ADDI64 r254, r254, -8d
|
|
ST r31, r254, 0a, 8h
|
|
CP r1, r2
|
|
ADDI64 r1, r1, 2d
|
|
LD r31, r254, 0a, 8h
|
|
ADDI64 r254, r254, 8d
|
|
JALA r0, r31, 0a
|
|
add_one:
|
|
ADDI64 r254, r254, -8d
|
|
ST r31, r254, 0a, 8h
|
|
CP r1, r2
|
|
ADDI64 r1, r1, 1d
|
|
LD r31, r254, 0a, 8h
|
|
ADDI64 r254, r254, 8d
|
|
JALA r0, r31, 0a
|
|
code size: 260
|
|
ret: 33
|
|
status: Ok(())
|