2024-09-04 16:46:32 -05:00
|
|
|
main:
|
2024-09-08 05:00:07 -05:00
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
ST r31, r254, 0a, 24h
|
2024-09-15 13:14:56 -05:00
|
|
|
LI64 r2, 10d
|
2024-09-04 16:46:32 -05:00
|
|
|
JAL r31, r0, :add_one
|
|
|
|
CP r32, r1
|
2024-09-15 13:14:56 -05:00
|
|
|
LI64 r2, 20d
|
2024-09-04 16:46:32 -05:00
|
|
|
JAL r31, r0, :add_two
|
2024-09-15 13:14:56 -05:00
|
|
|
CP r33, r1
|
|
|
|
ADD64 r1, r33, r32
|
2024-09-08 05:00:07 -05:00
|
|
|
LD r31, r254, 0a, 24h
|
|
|
|
ADDI64 r254, r254, 24d
|
2024-09-04 16:46:32 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-05 04:16:11 -05:00
|
|
|
add_two:
|
2024-09-05 19:42:07 -05:00
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r31, r254, 0a, 8h
|
2024-09-15 13:14:56 -05:00
|
|
|
ADDI64 r1, r2, 2d
|
2024-09-05 19:42:07 -05:00
|
|
|
LD r31, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
2024-09-04 16:46:32 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-05 04:16:11 -05:00
|
|
|
add_one:
|
2024-09-05 19:42:07 -05:00
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r31, r254, 0a, 8h
|
2024-09-15 13:14:56 -05:00
|
|
|
ADDI64 r1, r2, 1d
|
2024-09-05 19:42:07 -05:00
|
|
|
LD r31, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
2024-09-04 16:46:32 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-15 13:14:56 -05:00
|
|
|
code size: 251
|
2024-09-04 16:46:32 -05:00
|
|
|
ret: 33
|
|
|
|
status: Ok(())
|