2024-12-14 11:50:13 -06:00
|
|
|
main:
|
|
|
|
ADDI64 r254, r254, -72d
|
|
|
|
ST r31, r254, 32a, 40h
|
2024-12-15 10:17:41 -06:00
|
|
|
LRA r32, r0, :"Goodbye, World!\0"
|
|
|
|
LRA r33, r0, :"Hello, World!\0"
|
|
|
|
ST r32, r254, 8a, 8h
|
|
|
|
ST r33, r254, 24a, 8h
|
|
|
|
LD r2, r254, 24a, 8h
|
|
|
|
LD r3, r254, 8a, 8h
|
2024-12-14 11:50:13 -06:00
|
|
|
JAL r31, r0, :print
|
2024-12-15 10:17:41 -06:00
|
|
|
ADDI64 r34, r254, 0d
|
|
|
|
ADDI64 r35, r254, 16d
|
|
|
|
ST r32, r254, 0a, 8h
|
|
|
|
ST r33, r254, 16a, 8h
|
|
|
|
CP r2, r35
|
|
|
|
CP r3, r34
|
2024-12-14 11:50:13 -06:00
|
|
|
JAL r31, r0, :print2
|
|
|
|
LD r31, r254, 32a, 40h
|
|
|
|
ADDI64 r254, r254, 72d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
print:
|
|
|
|
ADDI64 r254, r254, -16d
|
|
|
|
ST r2, r254, 8a, 8h
|
|
|
|
ADDI64 r2, r254, 8d
|
|
|
|
CP r13, r2
|
|
|
|
ST r3, r254, 0a, 8h
|
|
|
|
ADDI64 r3, r254, 0d
|
|
|
|
CP r14, r3
|
|
|
|
LD r13, r13, 0a, 8h
|
|
|
|
LI64 r15, 37d
|
|
|
|
CP r2, r15
|
|
|
|
CP r3, r13
|
|
|
|
ECA
|
|
|
|
LD r13, r14, 0a, 8h
|
|
|
|
CP r2, r15
|
|
|
|
CP r3, r13
|
|
|
|
ECA
|
|
|
|
ADDI64 r254, r254, 16d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
print2:
|
|
|
|
CP r13, r2
|
|
|
|
CP r14, r3
|
|
|
|
LD r13, r13, 0a, 8h
|
|
|
|
LI64 r15, 37d
|
|
|
|
CP r2, r15
|
|
|
|
CP r3, r13
|
|
|
|
ECA
|
|
|
|
LD r13, r14, 0a, 8h
|
|
|
|
CP r2, r15
|
|
|
|
CP r3, r13
|
|
|
|
ECA
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
Hello, World!
|
|
|
|
Goodbye, World!
|
|
|
|
Hello, World!
|
|
|
|
Goodbye, World!
|
2024-12-15 10:17:41 -06:00
|
|
|
code size: 435
|
2024-12-14 11:50:13 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|