2024-10-24 12:57:36 -05:00
|
|
|
main:
|
2024-11-12 05:20:08 -06:00
|
|
|
ADDI64 r254, r254, -40d
|
2024-11-13 03:28:16 -06:00
|
|
|
LI64 r9, 1d
|
|
|
|
LI64 r8, 4d
|
|
|
|
CP r6, r0
|
|
|
|
ADDI64 r7, r254, 0d
|
|
|
|
CP r10, r6
|
|
|
|
6: JNE r10, r8, :0
|
|
|
|
LI64 r8, 2d
|
|
|
|
ADDI64 r5, r254, 32d
|
|
|
|
CP r10, r6
|
2024-11-12 05:20:08 -06:00
|
|
|
4: LD r1, r254, 16a, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
JNE r10, r9, :1
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :2
|
2024-11-13 03:28:16 -06:00
|
|
|
1: MUL64 r2, r10, r8
|
|
|
|
ADD64 r10, r10, r9
|
|
|
|
SUB64 r11, r8, r10
|
|
|
|
MUL64 r11, r11, r8
|
|
|
|
CP r1, r6
|
|
|
|
5: JNE r1, r8, :3
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :4
|
2024-11-13 03:28:16 -06:00
|
|
|
3: ADD64 r12, r1, r9
|
|
|
|
ADD64 r3, r2, r1
|
|
|
|
ADD64 r4, r11, r1
|
|
|
|
MULI64 r3, r3, 8d
|
|
|
|
MULI64 r1, r4, 8d
|
|
|
|
ADD64 r3, r7, r3
|
|
|
|
ADD64 r1, r7, r1
|
|
|
|
BMC r3, r5, 8h
|
2024-11-12 05:20:08 -06:00
|
|
|
BMC r1, r3, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
BMC r5, r1, 8h
|
|
|
|
CP r1, r12
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :5
|
2024-11-13 03:28:16 -06:00
|
|
|
0: ADD64 r4, r10, r9
|
|
|
|
MULI64 r2, r10, 8d
|
|
|
|
ADD64 r5, r7, r2
|
|
|
|
ST r10, r5, 0a, 8h
|
|
|
|
CP r10, r4
|
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-13 03:28:16 -06:00
|
|
|
code size: 264
|
2024-11-12 05:20:08 -06:00
|
|
|
ret: 0
|
2024-10-24 12:57:36 -05:00
|
|
|
status: Ok(())
|