forked from AbleOS/holey-bytes
39 lines
772 B
Plaintext
39 lines
772 B
Plaintext
|
main:
|
||
|
ADDI64 r254, r254, -10272d
|
||
|
ST r31, r254, 10240a, 32h
|
||
|
LI64 r32, 0d
|
||
|
2: LI64 r33, 1024d
|
||
|
JLTS r32, r33, :0
|
||
|
JMP :1
|
||
|
0: ADDI64 r33, r254, 0d
|
||
|
CP r34, r32
|
||
|
ADD64 r33, r33, r34
|
||
|
LI64 r34, 64d
|
||
|
ST r34, r33, 0a, 1h
|
||
|
ADDI64 r32, r32, 1d
|
||
|
JMP :2
|
||
|
1: LI64 r32, 1d
|
||
|
5: LI64 r33, 10d
|
||
|
JLTS r32, r33, :3
|
||
|
JMP :4
|
||
|
3: ADDI64 r33, r254, 0d
|
||
|
CP r34, r32
|
||
|
MULI64 r34, r34, 1024d
|
||
|
ADD64 r33, r33, r34
|
||
|
ADDI64 r34, r254, 0d
|
||
|
BMC r34, r33, 1024h
|
||
|
ADDI64 r32, r32, 1d
|
||
|
JMP :5
|
||
|
4: LI64 r33, 1024d
|
||
|
MULI64 r33, r33, 2d
|
||
|
ADDI64 r34, r254, 0d
|
||
|
ADD64 r34, r34, r33
|
||
|
CP r1, r0
|
||
|
LD r1, r34, 0a, 1h
|
||
|
LD r31, r254, 10240a, 32h
|
||
|
ADDI64 r254, r254, 10272d
|
||
|
JALA r0, r31, 0a
|
||
|
code size: 297
|
||
|
ret: 64
|
||
|
status: Ok(())
|