2024-10-24 12:57:36 -05:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -40d
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r17, 1d
|
2024-11-23 12:47:17 -06:00
|
|
|
LI64 r15, 4d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r14, r0
|
|
|
|
ADDI64 r18, r254, 0d
|
|
|
|
CP r13, r14
|
2024-11-23 12:47:17 -06:00
|
|
|
6: JNE r13, r15, :0
|
|
|
|
ADDI64 r19, r254, 32d
|
|
|
|
LI64 r20, 2d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r14
|
|
|
|
4: LD r15, r254, 16a, 8h
|
|
|
|
JNE r13, r17, :1
|
|
|
|
CP r1, r15
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :2
|
2024-11-23 12:47:17 -06:00
|
|
|
1: ADD64 r16, r13, r17
|
|
|
|
SUB64 r15, r20, r16
|
|
|
|
MUL64 r21, r15, r20
|
|
|
|
MUL64 r22, r13, r20
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r14
|
2024-11-23 12:47:17 -06:00
|
|
|
5: JNE r13, r20, :3
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r16
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :4
|
2024-11-15 15:35:03 -06:00
|
|
|
3: ADD64 r15, r13, r17
|
2024-11-23 12:47:17 -06:00
|
|
|
ADD64 r23, r22, r13
|
|
|
|
ADD64 r13, r21, r13
|
2024-11-15 15:35:03 -06:00
|
|
|
MULI64 r23, r23, 8d
|
|
|
|
MULI64 r13, r13, 8d
|
|
|
|
ADD64 r23, r18, r23
|
|
|
|
ADD64 r13, r18, r13
|
2024-11-23 12:47:17 -06:00
|
|
|
BMC r23, r19, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
BMC r13, r23, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
BMC r19, r13, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r15
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :5
|
2024-11-23 12:47:17 -06:00
|
|
|
0: MULI64 r16, r13, 8d
|
|
|
|
ADD64 r16, r18, r16
|
|
|
|
ST r13, r16, 0a, 8h
|
|
|
|
ADD64 r13, r13, r17
|
2024-10-24 12:57:36 -05:00
|
|
|
JMP :6
|
2024-11-17 03:06:10 -06:00
|
|
|
2: ADDI64 r254, r254, 40d
|
2024-10-24 12:57:36 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-23 12:47:17 -06:00
|
|
|
code size: 267
|
2024-11-12 05:20:08 -06:00
|
|
|
ret: 0
|
2024-10-24 12:57:36 -05:00
|
|
|
status: Ok(())
|