holey-bytes/lang/tests/son_tests_different_function_destinations.txt

83 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-11-14 13:25:52 -06:00
main:
ADDI64 r254, r254, -144d
ST r31, r254, 80a, 64h
2024-11-14 13:25:52 -06:00
LRA r32, r0, :glob_stru
JAL r31, r0, :new_stru
ST r1, r32, 0a, 16h
2024-11-15 15:35:03 -06:00
CP r33, r0
LD r34, r32, 0a, 8h
JEQ r34, r33, :0
LI64 r32, 300d
CP r1, r32
2024-11-14 13:25:52 -06:00
JMP :1
2024-11-23 08:28:27 -06:00
0: ST r33, r32, 0a, 8h
2024-11-15 15:35:03 -06:00
LD r34, r32, 0a, 8h
JEQ r34, r33, :2
LI64 r32, 200d
CP r1, r32
2024-11-14 13:25:52 -06:00
JMP :1
2024-11-23 08:28:27 -06:00
2: LI64 r35, 3d
LI64 r36, 1d
ST r36, r32, 0a, 8h
ST r36, r32, 8a, 8h
ADDI64 r37, r254, 32d
ST r36, r254, 32a, 8h
ST r36, r254, 40a, 8h
ST r36, r254, 48a, 8h
ST r36, r254, 56a, 8h
ST r36, r254, 64a, 8h
ST r36, r254, 72a, 8h
2024-11-15 15:35:03 -06:00
CP r32, r33
2024-11-23 08:28:27 -06:00
8: JNE r32, r35, :3
LD r32, r254, 64a, 8h
2024-11-15 15:35:03 -06:00
JEQ r32, r33, :4
LI64 r32, 100d
CP r1, r32
2024-11-14 13:25:52 -06:00
JMP :1
2024-11-15 15:35:03 -06:00
4: ST r33, r254, 0a, 8h
ST r33, r254, 8a, 8h
2024-11-23 08:28:27 -06:00
ST r33, r254, 16a, 8h
ST r33, r254, 24a, 8h
ST r36, r254, 32a, 8h
ST r36, r254, 40a, 8h
ST r36, r254, 48a, 8h
ST r36, r254, 56a, 8h
ST r36, r254, 64a, 8h
ST r36, r254, 72a, 8h
2024-11-15 15:35:03 -06:00
CP r32, r33
2024-11-23 08:28:27 -06:00
7: LD r38, r254, 64a, 8h
JNE r32, r35, :5
2024-11-15 15:35:03 -06:00
JEQ r38, r33, :6
LI64 r32, 10d
CP r1, r32
2024-11-14 13:25:52 -06:00
JMP :1
2024-11-15 15:35:03 -06:00
6: CP r1, r33
JMP :1
2024-11-23 08:28:27 -06:00
5: ADD64 r34, r32, r36
2024-11-15 15:35:03 -06:00
MULI64 r32, r32, 16d
ADD64 r32, r37, r32
ST r33, r32, 0a, 8h
ST r33, r32, 8a, 8h
CP r32, r34
2024-11-14 13:25:52 -06:00
JMP :7
3: MULI64 r34, r32, 16d
ADD64 r34, r37, r34
2024-11-14 13:25:52 -06:00
JAL r31, r0, :new_stru
ST r1, r34, 0a, 16h
2024-11-23 08:28:27 -06:00
ADD64 r32, r32, r36
2024-11-14 13:25:52 -06:00
JMP :8
1: LD r31, r254, 80a, 64h
ADDI64 r254, r254, 144d
2024-11-14 13:25:52 -06:00
JALA r0, r31, 0a
new_stru:
ADDI64 r254, r254, -16d
2024-11-15 15:35:03 -06:00
ADDI64 r13, r254, 0d
2024-11-14 13:25:52 -06:00
ST r0, r254, 0a, 8h
ST r0, r254, 8a, 8h
2024-11-15 15:35:03 -06:00
LD r1, r13, 0a, 16h
ADDI64 r254, r254, 16d
2024-11-14 13:25:52 -06:00
JALA r0, r31, 0a
2024-11-23 08:28:27 -06:00
code size: 739
2024-11-14 13:25:52 -06:00
ret: 0
status: Ok(())