2024-10-24 12:57:36 -05:00
|
|
|
main:
|
2024-11-12 05:20:08 -06:00
|
|
|
ADDI64 r254, r254, -40d
|
2024-11-10 02:17:43 -06:00
|
|
|
LI64 r7, 1d
|
|
|
|
LI64 r6, 4d
|
2024-10-24 12:57:36 -05:00
|
|
|
LI64 r4, 0d
|
|
|
|
ADDI64 r5, r254, 0d
|
2024-10-27 07:57:00 -05:00
|
|
|
CP r8, r4
|
2024-11-10 02:17:43 -06:00
|
|
|
6: JNE r8, r6, :0
|
|
|
|
LI64 r6, 2d
|
2024-11-12 05:20:08 -06:00
|
|
|
ADDI64 r3, r254, 32d
|
2024-10-27 07:57:00 -05:00
|
|
|
CP r8, r4
|
2024-11-12 05:20:08 -06:00
|
|
|
4: LD r1, r254, 16a, 8h
|
2024-11-10 02:17:43 -06:00
|
|
|
JNE r8, r7, :1
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :2
|
2024-11-12 05:20:08 -06:00
|
|
|
1: MUL64 r12, r8, r6
|
2024-11-10 02:17:43 -06:00
|
|
|
ADD64 r8, r8, r7
|
|
|
|
SUB64 r9, r6, r8
|
|
|
|
MUL64 r9, r9, r6
|
2024-11-12 05:20:08 -06:00
|
|
|
CP r11, r4
|
|
|
|
5: JNE r11, r6, :3
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :4
|
2024-11-12 05:20:08 -06:00
|
|
|
3: ADD64 r10, r11, r7
|
|
|
|
ADD64 r1, r12, r11
|
|
|
|
ADD64 r2, r9, r11
|
2024-11-10 02:17:43 -06:00
|
|
|
MULI64 r1, r1, 8d
|
2024-11-12 05:20:08 -06:00
|
|
|
MULI64 r11, r2, 8d
|
2024-11-10 02:17:43 -06:00
|
|
|
ADD64 r1, r5, r1
|
2024-11-12 05:20:08 -06:00
|
|
|
ADD64 r11, r5, r11
|
|
|
|
BMC r1, r3, 8h
|
|
|
|
BMC r11, r1, 8h
|
|
|
|
BMC r3, r11, 8h
|
|
|
|
CP r11, r10
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :5
|
2024-11-12 05:20:08 -06:00
|
|
|
0: ADD64 r2, r8, r7
|
|
|
|
MULI64 r12, r8, 8d
|
|
|
|
ADD64 r3, r5, r12
|
|
|
|
ST r8, r3, 0a, 8h
|
|
|
|
CP r8, r2
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :6
|
2024-11-12 05:20:08 -06:00
|
|
|
2: ADDI64 r254, r254, 40d
|
2024-10-24 12:57:36 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-12 05:20:08 -06:00
|
|
|
code size: 271
|
|
|
|
ret: 0
|
2024-10-24 12:57:36 -05:00
|
|
|
status: Ok(())
|