2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -10240d
|
2024-12-19 04:00:19 -06:00
|
|
|
LI8 r14, 64b
|
|
|
|
LI64 r15, 1024d
|
|
|
|
ADDI64 r16, r254, 0d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r0
|
2024-12-19 04:00:19 -06:00
|
|
|
4: JLTU r13, r15, :0
|
|
|
|
ADDI64 r14, r16, 10240d
|
|
|
|
ADDI64 r13, r16, 1024d
|
|
|
|
3: LD r15, r254, 2048a, 1h
|
|
|
|
JLTU r13, r14, :1
|
|
|
|
ANDI r13, r15, 255d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r1, r13
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :2
|
2024-12-19 04:00:19 -06:00
|
|
|
1: BMC r16, r13, 1024h
|
|
|
|
ADDI64 r13, r13, 1024d
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-12-19 04:00:19 -06:00
|
|
|
0: ADD64 r17, r16, r13
|
|
|
|
ST r14, r17, 0a, 1h
|
|
|
|
ADDI64 r13, r13, 1d
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :4
|
2024-11-17 03:06:10 -06:00
|
|
|
2: ADDI64 r254, r254, 10240d
|
2024-10-21 12:57:55 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-12-19 04:00:19 -06:00
|
|
|
code size: 186
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|