forked from AbleOS/holey-bytes
31 lines
555 B
Plaintext
31 lines
555 B
Plaintext
main:
|
|
ADDI64 r254, r254, -10240d
|
|
LI64 r6, 1d
|
|
LI8 r7, 64b
|
|
LI64 r8, 1024d
|
|
LI64 r9, 0d
|
|
ADDI64 r5, r254, 0d
|
|
4: JLTU r9, r8, :0
|
|
LI64 r4, 10d
|
|
CP r7, r6
|
|
3: LD r9, r254, 2048a, 1h
|
|
JLTU r7, r4, :1
|
|
ANDI r1, r9, 255d
|
|
JMP :2
|
|
1: ADD64 r12, r7, r6
|
|
MULI64 r1, r7, 1024d
|
|
ADD64 r7, r5, r1
|
|
BMC r5, r7, 1024h
|
|
CP r7, r12
|
|
JMP :3
|
|
0: ADD64 r1, r9, r6
|
|
ADD64 r10, r5, r9
|
|
ST r7, r10, 0a, 1h
|
|
CP r9, r1
|
|
JMP :4
|
|
2: ADDI64 r254, r254, 10240d
|
|
JALA r0, r31, 0a
|
|
code size: 198
|
|
ret: 64
|
|
status: Ok(())
|