forked from AbleOS/holey-bytes
78 lines
1.6 KiB
Plaintext
78 lines
1.6 KiB
Plaintext
main:
|
|
ADDI64 r254, r254, -104d
|
|
ST r31, r254, 48a, 56h
|
|
LRA r32, r0, :glob_stru
|
|
JAL r31, r0, :new_stru
|
|
ST r1, r32, 0a, 16h
|
|
CP r33, r0
|
|
LD r34, r32, 0a, 8h
|
|
JEQ r34, r33, :0
|
|
LI64 r32, 300d
|
|
CP r1, r32
|
|
JMP :1
|
|
0: ST r33, r32, 0a, 8h
|
|
LD r34, r32, 0a, 8h
|
|
JEQ r34, r33, :2
|
|
LI64 r32, 200d
|
|
CP r1, r32
|
|
JMP :1
|
|
2: LI64 r34, 1d
|
|
ST r34, r32, 0a, 8h
|
|
ST r34, r32, 8a, 8h
|
|
ADDI64 r35, r254, 0d
|
|
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
|
|
ST r34, r254, 40a, 8h
|
|
LI64 r36, 3d
|
|
CP r32, r33
|
|
8: JNE r32, r36, :3
|
|
LD r32, r254, 32a, 8h
|
|
JEQ r32, r33, :4
|
|
LI64 r32, 100d
|
|
CP r1, r32
|
|
JMP :1
|
|
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
|
|
ST r34, r254, 40a, 8h
|
|
CP r32, r33
|
|
7: LD r37, r254, 32a, 8h
|
|
JNE r32, r36, :5
|
|
JEQ r37, r33, :6
|
|
LI64 r32, 10d
|
|
CP r1, r32
|
|
JMP :1
|
|
6: CP r1, r33
|
|
JMP :1
|
|
5: MULI64 r37, r32, 16d
|
|
ADD64 r37, r35, r37
|
|
ST r33, r37, 0a, 8h
|
|
ST r33, r37, 8a, 8h
|
|
ADD64 r32, r32, r34
|
|
JMP :7
|
|
3: MULI64 r37, r32, 16d
|
|
ADD64 r37, r35, r37
|
|
JAL r31, r0, :new_stru
|
|
ST r1, r37, 0a, 16h
|
|
ADD64 r32, r32, r34
|
|
JMP :8
|
|
1: LD r31, r254, 48a, 56h
|
|
ADDI64 r254, r254, 104d
|
|
JALA r0, r31, 0a
|
|
new_stru:
|
|
ADDI64 r254, r254, -16d
|
|
ADDI64 r13, r254, 0d
|
|
ST r0, r254, 0a, 8h
|
|
ST r0, r254, 8a, 8h
|
|
LD r1, r13, 0a, 16h
|
|
ADDI64 r254, r254, 16d
|
|
JALA r0, r31, 0a
|
|
code size: 684
|
|
ret: 0
|
|
status: Ok(())
|