holey-bytes/lang/tests/son_tests_nullable_structure.txt
2024-11-12 19:02:29 +01:00

63 lines
1.3 KiB
Plaintext

main:
ADDI64 r254, r254, -138d
ST r31, r254, 26a, 112h
JAL r31, r0, :returner_fn
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
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
LI64 r1, 0d
JMP :1
0: LI64 r1, 1d
1: LD r31, r254, 26a, 112h
ADDI64 r254, r254, 138d
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
JALA r0, r31, 0a
returner_fn:
LD r1, r254, 0a, 0h
ORI r1, r1, 128d
JALA r0, r31, 0a
code size: 513
ret: 1
status: Ok(())