2024-10-21 12:57:55 -05:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -10240d
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r14, 1d
|
|
|
|
LI8 r16, 64b
|
|
|
|
LI64 r17, 1024d
|
|
|
|
CP r13, r0
|
|
|
|
ADDI64 r18, r254, 0d
|
|
|
|
4: JLTU r13, r17, :0
|
|
|
|
LI64 r16, 10d
|
|
|
|
CP r13, r14
|
2024-11-23 12:47:17 -06:00
|
|
|
3: LD r15, r254, 2048a, 1h
|
2024-11-15 15:35:03 -06:00
|
|
|
JLTU r13, r16, :1
|
2024-11-23 12:47:17 -06:00
|
|
|
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-11-15 15:35:03 -06:00
|
|
|
1: ADD64 r15, r13, r14
|
|
|
|
MULI64 r13, r13, 1024d
|
|
|
|
ADD64 r13, r18, r13
|
|
|
|
BMC r18, r13, 1024h
|
|
|
|
CP r13, r15
|
2024-10-21 12:57:55 -05:00
|
|
|
JMP :3
|
2024-11-15 15:35:03 -06:00
|
|
|
0: ADD64 r15, r13, r14
|
|
|
|
ADD64 r13, r18, r13
|
|
|
|
ST r16, r13, 0a, 1h
|
|
|
|
CP r13, r15
|
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-11-17 03:06:10 -06:00
|
|
|
code size: 194
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 64
|
|
|
|
status: Ok(())
|