2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-10-22 03:08:50 -05:00
|
|
|
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
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :2
|
2024-10-22 03:08:50 -05:00
|
|
|
1: ADD64 r9, r11, r10
|
|
|
|
MUL64 r5, r11, r6
|
|
|
|
ADD64 r11, r5, r7
|
|
|
|
BMC r7, r11, 1024h
|
|
|
|
CP r11, r9
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-10-22 03:08:50 -05:00
|
|
|
0: ADD64 r5, r9, r10
|
|
|
|
ADD64 r3, r9, r7
|
|
|
|
ST r8, r3, 0a, 1h
|
|
|
|
CP r9, r5
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :4
|
2024-10-22 03:08:50 -05:00
|
|
|
2: ADDI64 r254, r254, 20480d
|
2024-10-21 12:57:55 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-10-22 03:08:50 -05:00
|
|
|
code size: 214
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|