2024-10-21 08:12:37 -05:00
|
|
|
main:
|
2024-11-05 07:52:30 -06:00
|
|
|
ADDI64 r254, r254, -32d
|
|
|
|
ST r31, r254, 0a, 32h
|
2024-10-24 02:43:07 -05:00
|
|
|
JAL r31, r0, :scalar_values
|
2024-11-05 07:52:30 -06:00
|
|
|
LI64 r32, 0d
|
|
|
|
CP r33, r32
|
|
|
|
JEQ r1, r33, :0
|
2024-10-24 02:43:07 -05:00
|
|
|
LI64 r1, 1d
|
2024-10-21 08:12:37 -05:00
|
|
|
JMP :1
|
2024-11-05 07:52:30 -06:00
|
|
|
0: JAL r31, r0, :structs
|
|
|
|
CP r34, r33
|
|
|
|
JEQ r1, r34, :2
|
2024-10-24 02:43:07 -05:00
|
|
|
JAL r31, r0, :structs
|
|
|
|
JMP :1
|
2024-11-05 07:52:30 -06:00
|
|
|
2: CP r1, r34
|
|
|
|
CP r33, r34
|
|
|
|
1: LD r31, r254, 0a, 32h
|
|
|
|
ADDI64 r254, r254, 32d
|
2024-10-24 02:43:07 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
scalar_values:
|
|
|
|
LI64 r1, 0d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
structs:
|
2024-10-29 03:04:49 -05:00
|
|
|
ADDI64 r254, r254, -32d
|
2024-11-03 01:59:42 -06:00
|
|
|
LI64 r1, 5d
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r1, r254, 16a, 8h
|
|
|
|
ST r1, r254, 24a, 8h
|
|
|
|
LD r5, r254, 16a, 8h
|
2024-11-03 01:59:42 -06:00
|
|
|
ADDI64 r7, r5, 15d
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 0a, 8h
|
2024-11-03 01:59:42 -06:00
|
|
|
LI64 r10, 20d
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r10, r254, 8a, 8h
|
|
|
|
LD r1, r254, 0a, 8h
|
2024-11-03 01:59:42 -06:00
|
|
|
SUB64 r1, r1, r10
|
2024-10-29 03:04:49 -05:00
|
|
|
ADDI64 r254, r254, 32d
|
2024-10-23 05:26:07 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-05 07:52:30 -06:00
|
|
|
code size: 307
|
2024-10-22 03:08:50 -05:00
|
|
|
ret: 0
|
2024-10-21 08:12:37 -05:00
|
|
|
status: Ok(())
|