holey-bytes/lang/tests/son_tests_method_receiver_by_value.txt

62 lines
1.2 KiB
Plaintext
Raw Normal View History

main:
ADDI64 r254, r254, -72d
ST r31, r254, 32a, 40h
ADDI64 r32, r254, 8d
LRA r33, r0, :"Goodbye, World!\0"
ADDI64 r34, r254, 24d
LRA r35, r0, :"Hello, World!\0"
ST r33, r254, 8a, 8h
ST r35, r254, 24a, 8h
LD r2, r34, 0a, 8h
LD r3, r32, 0a, 8h
JAL r31, r0, :print
ADDI64 r32, r254, 0d
ADDI64 r34, r254, 16d
ST r33, r254, 0a, 8h
ST r35, r254, 16a, 8h
CP r2, r34
CP r3, r32
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!
code size: 457
ret: 0
status: Ok(())