2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, -10240d
|
2024-11-13 03:28:16 -06:00
|
|
|
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
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :2
|
2024-11-13 03:28:16 -06:00
|
|
|
1: ADD64 r4, r10, r9
|
|
|
|
MULI64 r3, r10, 1024d
|
|
|
|
ADD64 r5, r7, r3
|
|
|
|
BMC r7, r5, 1024h
|
|
|
|
CP r10, r4
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-11-13 03:28:16 -06:00
|
|
|
0: ADD64 r4, r11, r9
|
|
|
|
ADD64 r2, r7, r11
|
|
|
|
ST r10, r2, 0a, 1h
|
|
|
|
CP r11, r4
|
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-11-13 03:28:16 -06:00
|
|
|
code size: 191
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|