forked from AbleOS/holey-bytes
33 lines
614 B
Plaintext
33 lines
614 B
Plaintext
main:
|
|
ADDI64 r254, r254, -20480d
|
|
LI64 r8, 64d
|
|
LI64 r6, 1024d
|
|
LI64 r10, 1d
|
|
LI64 r9, 0d
|
|
ADDI64 r7, r254, 0d
|
|
ADDI64 r11, r254, 10240d
|
|
BMC r11, r7, 10240h
|
|
4: JLTS r9, r6, :0
|
|
LI64 r8, 10d
|
|
CP r11, r10
|
|
3: JLTS r11, r8, :1
|
|
LD r12, r254, 2048a, 1h
|
|
ANDI r1, r12, 255d
|
|
JMP :2
|
|
1: ADD64 r9, r11, r10
|
|
MUL64 r5, r11, r6
|
|
ADD64 r11, r5, r7
|
|
BMC r7, r11, 1024h
|
|
CP r11, r9
|
|
JMP :3
|
|
0: ADD64 r5, r9, r10
|
|
ADD64 r3, r9, r7
|
|
ST r8, r3, 0a, 1h
|
|
CP r9, r5
|
|
JMP :4
|
|
2: ADDI64 r254, r254, 20480d
|
|
JALA r0, r31, 0a
|
|
code size: 214
|
|
ret: 64
|
|
status: Ok(())
|