2024-11-07 09:39:15 -06:00
|
|
|
main:
|
2024-11-12 12:02:29 -06:00
|
|
|
ADDI64 r254, r254, -138d
|
|
|
|
ST r31, r254, 26a, 112h
|
2024-11-07 09:39:15 -06:00
|
|
|
JAL r31, r0, :returner_fn
|
2024-11-07 10:02:22 -06:00
|
|
|
CP r32, r1
|
|
|
|
ADDI64 r1, r254, 2d
|
|
|
|
JAL r31, r0, :returner_bn
|
|
|
|
ADDI64 r33, r254, 0d
|
|
|
|
JAL r31, r0, :returner_cn
|
|
|
|
ST r1, r254, 0a, 2h
|
|
|
|
LI8 r34, 0b
|
|
|
|
CP r1, r32
|
2024-11-12 12:02:29 -06:00
|
|
|
CMPU r35, r1, r34
|
|
|
|
CMPUI r35, r35, 0d
|
|
|
|
LI8 r36, 0b
|
|
|
|
LD r37, r254, 2a, 1h
|
|
|
|
ANDI r38, r35, 255d
|
|
|
|
CMPU r32, r37, r36
|
|
|
|
CMPUI r32, r32, 0d
|
|
|
|
AND r39, r32, r38
|
|
|
|
LD r40, r254, 0a, 1h
|
|
|
|
ANDI r41, r39, 255d
|
|
|
|
CMPU r42, r40, r36
|
|
|
|
CMPUI r42, r42, 0d
|
|
|
|
AND r43, r42, r41
|
|
|
|
ANDI r44, r43, 255d
|
|
|
|
ANDI r44, r44, 255d
|
|
|
|
JNE r44, r0, :0
|
2024-11-07 10:02:22 -06:00
|
|
|
LI64 r1, 0d
|
2024-11-07 09:39:15 -06:00
|
|
|
JMP :1
|
2024-11-07 10:02:22 -06:00
|
|
|
0: LI64 r1, 1d
|
2024-11-12 12:02:29 -06:00
|
|
|
1: LD r31, r254, 26a, 112h
|
|
|
|
ADDI64 r254, r254, 138d
|
2024-11-07 10:02:22 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_bn:
|
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
LI8 r6, 1b
|
|
|
|
ADDI64 r5, r254, 0d
|
|
|
|
ST r6, r254, 0a, 1h
|
|
|
|
LI64 r6, 0d
|
|
|
|
ST r6, r254, 8a, 8h
|
|
|
|
ST r6, r254, 16a, 8h
|
|
|
|
BMC r5, r1, 24h
|
|
|
|
ADDI64 r254, r254, 24d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_cn:
|
|
|
|
ADDI64 r254, r254, -2d
|
|
|
|
LI8 r4, 1b
|
|
|
|
ADDI64 r3, r254, 0d
|
|
|
|
ST r4, r254, 0a, 1h
|
|
|
|
LI8 r4, 0b
|
|
|
|
ST r4, r254, 1a, 1h
|
|
|
|
LD r1, r3, 0a, 2h
|
|
|
|
ADDI64 r254, r254, 2d
|
2024-11-07 09:39:15 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
returner_fn:
|
|
|
|
LD r1, r254, 0a, 0h
|
|
|
|
ORI r1, r1, 128d
|
|
|
|
JALA r0, r31, 0a
|
2024-11-12 12:02:29 -06:00
|
|
|
code size: 513
|
2024-11-07 09:39:15 -06:00
|
|
|
ret: 1
|
|
|
|
status: Ok(())
|