2024-10-21 08:12:37 -05:00
|
|
|
main:
|
2024-10-24 02:43:07 -05:00
|
|
|
ADDI64 r254, r254, -16d
|
|
|
|
ST r31, r254, 0a, 16h
|
|
|
|
JAL r31, r0, :scalar_values
|
|
|
|
LI64 r3, 0d
|
|
|
|
CP r8, r3
|
|
|
|
JEQ r1, r8, :0
|
|
|
|
LI64 r1, 1d
|
2024-10-21 08:12:37 -05:00
|
|
|
JMP :1
|
2024-10-24 02:43:07 -05:00
|
|
|
0: CP r32, r8
|
|
|
|
JAL r31, r0, :structs
|
|
|
|
CP r3, r32
|
|
|
|
JEQ r1, r3, :2
|
|
|
|
JAL r31, r0, :structs
|
|
|
|
JMP :1
|
|
|
|
2: CP r1, r3
|
|
|
|
CP r32, r3
|
|
|
|
1: LD r31, r254, 0a, 16h
|
|
|
|
ADDI64 r254, r254, 16d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
scalar_values:
|
|
|
|
LI64 r1, 0d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
structs:
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, -48d
|
2024-10-26 05:48:57 -05:00
|
|
|
LI64 r1, 0d
|
|
|
|
ST r1, r254, 40a, 8h
|
|
|
|
LI64 r4, 20d
|
|
|
|
ST r4, r254, 0a, 8h
|
|
|
|
LI64 r7, 5d
|
|
|
|
ST r7, r254, 8a, 8h
|
|
|
|
ST r7, r254, 16a, 8h
|
|
|
|
LD r11, r254, 0a, 8h
|
|
|
|
LD r1, r254, 8a, 8h
|
2024-10-27 07:57:00 -05:00
|
|
|
ADD64 r3, r1, r11
|
|
|
|
SUB64 r5, r3, r7
|
2024-10-26 05:48:57 -05:00
|
|
|
ST r5, r254, 24a, 8h
|
|
|
|
ST r4, r254, 32a, 8h
|
|
|
|
LD r9, r254, 40a, 8h
|
|
|
|
LD r11, r254, 24a, 8h
|
2024-10-27 07:57:00 -05:00
|
|
|
ADD64 r1, r11, r9
|
|
|
|
SUB64 r1, r1, r4
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, 48d
|
2024-10-23 05:26:07 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-10-26 05:48:57 -05:00
|
|
|
code size: 373
|
2024-10-22 03:08:50 -05:00
|
|
|
ret: 0
|
2024-10-21 08:12:37 -05:00
|
|
|
status: Ok(())
|