2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, -10240d
|
2024-10-29 04:01:37 -05:00
|
|
|
LI64 r6, 1d
|
|
|
|
LI8 r7, 64b
|
2024-10-28 11:19:41 -05:00
|
|
|
LI64 r8, 1024d
|
2024-10-27 07:57:00 -05:00
|
|
|
LI64 r9, 0d
|
2024-10-25 07:51:33 -05:00
|
|
|
ADDI64 r5, r254, 0d
|
2024-10-28 11:19:41 -05:00
|
|
|
4: JLTU r9, r8, :0
|
2024-10-27 07:57:00 -05:00
|
|
|
LI64 r4, 10d
|
2024-10-29 04:01:37 -05:00
|
|
|
CP r7, r6
|
|
|
|
3: JLTU r7, r4, :1
|
2024-10-27 07:57:00 -05:00
|
|
|
LD r10, r254, 2048a, 1h
|
|
|
|
ANDI r1, r10, 255d
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :2
|
2024-10-29 04:01:37 -05:00
|
|
|
1: ADD64 r12, r7, r6
|
|
|
|
MULI64 r1, r7, 1024d
|
|
|
|
ADD64 r7, r5, r1
|
|
|
|
BMC r5, r7, 1024h
|
|
|
|
CP r7, r12
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-10-29 04:01:37 -05:00
|
|
|
0: ADD64 r1, r9, r6
|
2024-10-27 07:57:00 -05:00
|
|
|
ADD64 r10, r5, r9
|
2024-10-29 04:01:37 -05:00
|
|
|
ST r7, r10, 0a, 1h
|
2024-10-27 07:57:00 -05:00
|
|
|
CP r9, r1
|
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-25 08:40:23 -05:00
|
|
|
code size: 198
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|