2024-11-07 09:39:15 -06:00
|
|
|
main:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -74d
|
|
|
|
ST r31, r254, 26a, 48h
|
2024-11-07 09:39:15 -06:00
|
|
|
JAL r31, r0, :returner_fn
|
2024-11-07 10:02:22 -06:00
|
|
|
CP r32, r1
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r33, r254, 2d
|
|
|
|
CP r1, r33
|
2024-11-07 10:02:22 -06:00
|
|
|
JAL r31, r0, :returner_bn
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r34, r254, 0d
|
2024-11-07 10:02:22 -06:00
|
|
|
JAL r31, r0, :returner_cn
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r1, r34, 0a, 2h
|
|
|
|
LD r33, r254, 2a, 1h
|
|
|
|
CMPU r32, r32, r0
|
2024-11-13 03:28:16 -06:00
|
|
|
CMPUI r32, r32, 0d
|
2024-11-15 15:35:03 -06:00
|
|
|
CMPU r33, r33, r0
|
|
|
|
CMPUI r33, r33, 0d
|
|
|
|
LD r34, r254, 0a, 1h
|
|
|
|
AND r32, r33, r32
|
|
|
|
CMPU r33, r34, r0
|
|
|
|
CMPUI r33, r33, 0d
|
|
|
|
AND r32, r33, r32
|
|
|
|
ANDI r32, r32, 255d
|
|
|
|
JNE r32, r0, :0
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r1, r0
|
2024-11-07 09:39:15 -06:00
|
|
|
JMP :1
|
2024-11-15 15:35:03 -06:00
|
|
|
0: LI64 r32, 1d
|
|
|
|
CP r1, r32
|
|
|
|
1: LD r31, r254, 26a, 48h
|
|
|
|
ADDI64 r254, r254, 74d
|
2024-11-07 10:02:22 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_bn:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -40d
|
|
|
|
ST r32, r254, 24a, 16h
|
|
|
|
CP r15, r1
|
|
|
|
LI8 r14, 1b
|
|
|
|
ADDI64 r13, r254, 0d
|
|
|
|
ST r14, r254, 0a, 1h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 8a, 8h
|
|
|
|
ST r0, r254, 16a, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
BMC r13, r15, 24h
|
|
|
|
LD r32, r254, 24a, 16h
|
|
|
|
ADDI64 r254, r254, 40d
|
2024-11-07 10:02:22 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_cn:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -18d
|
|
|
|
ST r32, r254, 2a, 16h
|
|
|
|
LI8 r13, 1b
|
|
|
|
ADDI64 r14, r254, 0d
|
|
|
|
ST r13, r254, 0a, 1h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 1a, 1h
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r1, r14, 0a, 2h
|
|
|
|
LD r32, r254, 2a, 16h
|
|
|
|
ADDI64 r254, r254, 18d
|
2024-11-07 09:39:15 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_fn:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r32, r254, 0a, 8h
|
|
|
|
LD r13, r254, 0a, 0h
|
|
|
|
ORI r13, r13, 128d
|
|
|
|
CP r1, r13
|
|
|
|
LD r32, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
2024-11-07 09:39:15 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-11-16 03:16:35 -06:00
|
|
|
code size: 563
|
2024-11-07 09:39:15 -06:00
|
|
|
ret: 1
|
|
|
|
status: Ok(())
|