2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, -10240d
|
|
|
|
LI64 r7, 64d
|
|
|
|
LI64 r5, 1024d
|
|
|
|
LI64 r9, 1d
|
|
|
|
LI64 r8, 0d
|
|
|
|
ADDI64 r6, r254, 0d
|
|
|
|
4: JLTS r8, r5, :0
|
|
|
|
LI64 r7, 10d
|
|
|
|
CP r8, r9
|
|
|
|
3: JLTS r8, r7, :1
|
|
|
|
LD r9, r254, 2048a, 1h
|
|
|
|
ANDI r1, r9, 255d
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :2
|
2024-10-24 03:21:10 -05:00
|
|
|
1: ADD64 r3, r8, r9
|
|
|
|
MUL64 r2, r8, r5
|
|
|
|
ADD64 r4, r2, r6
|
|
|
|
BMC r6, r4, 1024h
|
|
|
|
CP r8, r3
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-10-24 03:21:10 -05:00
|
|
|
0: ADD64 r2, r8, r9
|
|
|
|
ADD64 r12, r8, r6
|
|
|
|
ST r7, r12, 0a, 1h
|
|
|
|
CP r8, r2
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :4
|
2024-10-24 03:21:10 -05:00
|
|
|
2: ADDI64 r254, r254, 10240d
|
2024-10-21 12:57:55 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-10-24 03:21:10 -05:00
|
|
|
code size: 198
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|