34 lines
661 B
Plaintext
34 lines
661 B
Plaintext
main:
|
|
ADDI64 r254, r254, -10288d
|
|
ST r32, r254, 10240a, 48h
|
|
LI64 r14, 1d
|
|
LI8 r16, 64b
|
|
LI64 r17, 1024d
|
|
CP r13, r0
|
|
ADDI64 r18, r254, 0d
|
|
4: JLTU r13, r17, :0
|
|
LI64 r16, 10d
|
|
CP r13, r14
|
|
3: LD r17, r254, 2048a, 1h
|
|
JLTU r13, r16, :1
|
|
ANDI r13, r17, 255d
|
|
CP r1, r13
|
|
JMP :2
|
|
1: ADD64 r15, r13, r14
|
|
MULI64 r13, r13, 1024d
|
|
ADD64 r13, r18, r13
|
|
BMC r18, r13, 1024h
|
|
CP r13, r15
|
|
JMP :3
|
|
0: ADD64 r15, r13, r14
|
|
ADD64 r13, r18, r13
|
|
ST r16, r13, 0a, 1h
|
|
CP r13, r15
|
|
JMP :4
|
|
2: LD r32, r254, 10240a, 48h
|
|
ADDI64 r254, r254, 10288d
|
|
JALA r0, r31, 0a
|
|
code size: 220
|
|
ret: 64
|
|
status: Ok(())
|