forked from AbleOS/holey-bytes
52 lines
1 KiB
Plaintext
52 lines
1 KiB
Plaintext
main:
|
|
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
|
|
JMP :1
|
|
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:
|
|
ADDI64 r254, r254, -48d
|
|
ADDI64 r1, r254, 40d
|
|
LI64 r3, 0d
|
|
ST r3, r254, 40a, 8h
|
|
ADDI64 r7, r254, 0d
|
|
LI64 r9, 20d
|
|
ST r9, r254, 0a, 8h
|
|
LI64 r1, 5d
|
|
ADDI64 r2, r254, 8d
|
|
ST r1, r254, 8a, 8h
|
|
ST r1, r254, 16a, 8h
|
|
LD r6, r254, 0a, 8h
|
|
LD r8, r254, 8a, 8h
|
|
ADD64 r11, r8, r6
|
|
SUB64 r11, r11, r1
|
|
ADDI64 r5, r254, 24d
|
|
ST r11, r254, 24a, 8h
|
|
ST r9, r254, 32a, 8h
|
|
LD r5, r254, 40a, 8h
|
|
LD r7, r254, 24a, 8h
|
|
ADD64 r10, r7, r5
|
|
SUB64 r1, r10, r9
|
|
ADDI64 r254, r254, 48d
|
|
JALA r0, r31, 0a
|
|
code size: 417
|
|
ret: 0
|
|
status: Ok(())
|