31 lines
556 B
Plaintext
31 lines
556 B
Plaintext
main:
|
|
ADDI64 r254, r254, -10240d
|
|
LI64 r6, 64d
|
|
LI64 r7, 1024d
|
|
LI64 r9, 1d
|
|
LI64 r8, 0d
|
|
ADDI64 r5, r254, 0d
|
|
4: JLTU r8, r7, :0
|
|
LI64 r6, 10d
|
|
CP r7, r9
|
|
3: JLTU r7, r6, :1
|
|
LD r12, r254, 2048a, 1h
|
|
ANDI r1, r12, 255d
|
|
JMP :2
|
|
1: ADD64 r2, r7, r9
|
|
MULI64 r1, r7, 1024d
|
|
ADD64 r3, r1, r5
|
|
BMC r5, r3, 1024h
|
|
CP r7, r2
|
|
JMP :3
|
|
0: ADD64 r2, r8, r9
|
|
ADD64 r12, r8, r5
|
|
ST r6, r12, 0a, 1h
|
|
CP r8, r2
|
|
JMP :4
|
|
2: ADDI64 r254, r254, 10240d
|
|
JALA r0, r31, 0a
|
|
code size: 205
|
|
ret: 64
|
|
status: Ok(())
|