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