2024-11-14 13:25:52 -06:00
|
|
|
main:
|
2024-12-15 12:37:37 -06:00
|
|
|
ADDI64 r254, r254, -88d
|
|
|
|
ST r31, r254, 48a, 40h
|
2024-11-14 13:25:52 -06:00
|
|
|
LRA r32, r0, :glob_stru
|
|
|
|
JAL r31, r0, :new_stru
|
|
|
|
ST r1, r32, 0a, 16h
|
2024-12-15 12:37:37 -06:00
|
|
|
LD r33, r32, 0a, 8h
|
|
|
|
JEQ r33, r0, :0
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 300d
|
|
|
|
CP r1, r32
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :1
|
2024-12-15 12:37:37 -06:00
|
|
|
0: ST r0, r32, 0a, 8h
|
|
|
|
LD r33, r32, 0a, 8h
|
|
|
|
JEQ r33, r0, :2
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 200d
|
|
|
|
CP r1, r32
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :1
|
2024-11-23 12:47:17 -06:00
|
|
|
2: LI64 r34, 1d
|
|
|
|
ST r34, r32, 0a, 8h
|
|
|
|
ST r34, r32, 8a, 8h
|
2024-12-15 12:37:37 -06:00
|
|
|
ADDI64 r33, r254, 0d
|
2024-11-24 07:47:38 -06:00
|
|
|
ST r34, r254, 0a, 8h
|
|
|
|
ST r34, r254, 8a, 8h
|
|
|
|
ST r34, r254, 16a, 8h
|
|
|
|
ST r34, r254, 24a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
ST r34, r254, 32a, 8h
|
|
|
|
ST r34, r254, 40a, 8h
|
2024-12-15 12:37:37 -06:00
|
|
|
ADDI64 r35, r33, 48d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r33
|
2024-12-15 12:37:37 -06:00
|
|
|
8: JNE r35, r32, :3
|
2024-11-24 07:47:38 -06:00
|
|
|
LD r32, r254, 32a, 8h
|
2024-12-15 12:37:37 -06:00
|
|
|
JEQ r32, r0, :4
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 100d
|
|
|
|
CP r1, r32
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :1
|
2024-11-24 07:47:38 -06:00
|
|
|
4: ST r34, r254, 0a, 8h
|
|
|
|
ST r34, r254, 8a, 8h
|
|
|
|
ST r34, r254, 16a, 8h
|
|
|
|
ST r34, r254, 24a, 8h
|
|
|
|
ST r34, r254, 32a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
ST r34, r254, 40a, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r33
|
2024-12-15 12:37:37 -06:00
|
|
|
7: LD r34, r254, 32a, 8h
|
|
|
|
JNE r35, r32, :5
|
|
|
|
JEQ r34, r0, :6
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 10d
|
|
|
|
CP r1, r32
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :1
|
2024-12-15 12:37:37 -06:00
|
|
|
6: CP r1, r0
|
2024-11-15 15:35:03 -06:00
|
|
|
JMP :1
|
2024-12-19 04:00:19 -06:00
|
|
|
5: ST r0, r32, 0a, 8h
|
2024-12-15 12:37:37 -06:00
|
|
|
ST r0, r32, 8a, 8h
|
2024-12-19 04:00:19 -06:00
|
|
|
ADDI64 r32, r32, 16d
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :7
|
2024-12-15 12:37:37 -06:00
|
|
|
3: JAL r31, r0, :new_stru
|
|
|
|
ST r1, r32, 0a, 16h
|
|
|
|
ADDI64 r32, r32, 16d
|
2024-11-14 13:25:52 -06:00
|
|
|
JMP :8
|
2024-12-15 12:37:37 -06:00
|
|
|
1: LD r31, r254, 48a, 40h
|
|
|
|
ADDI64 r254, r254, 88d
|
2024-11-14 13:25:52 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
new_stru:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -16d
|
2024-11-14 13:25:52 -06:00
|
|
|
ST r0, r254, 0a, 8h
|
|
|
|
ST r0, r254, 8a, 8h
|
2024-12-15 10:57:22 -06:00
|
|
|
LD r1, r254, 0a, 16h
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, 16d
|
2024-11-14 13:25:52 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-12-19 04:00:19 -06:00
|
|
|
code size: 655
|
2024-11-14 13:25:52 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|