holey-bytes/lang/tests/son_tests_string_flip.txt

47 lines
903 B
Plaintext

main:
ADDI64 r254, r254, -40d
LI64 r17, 1d
LI64 r16, 4d
CP r14, r0
ADDI64 r18, r254, 0d
CP r13, r14
6: JNE r13, r16, :0
LI64 r19, 2d
ADDI64 r20, r254, 32d
CP r13, r14
4: LD r15, r254, 16a, 8h
JNE r13, r17, :1
CP r1, r15
JMP :2
1: MUL64 r21, r13, r19
ADD64 r16, r13, r17
SUB64 r13, r19, r16
MUL64 r22, r13, r19
CP r13, r14
5: JNE r13, r19, :3
CP r13, r16
JMP :4
3: ADD64 r15, r13, r17
ADD64 r23, r21, r13
ADD64 r13, r22, r13
MULI64 r23, r23, 8d
MULI64 r13, r13, 8d
ADD64 r23, r18, r23
ADD64 r13, r18, r13
BMC r23, r20, 8h
BMC r13, r23, 8h
BMC r20, r13, 8h
CP r13, r15
JMP :5
0: ADD64 r15, r13, r17
MULI64 r19, r13, 8d
ADD64 r19, r18, r19
ST r13, r19, 0a, 8h
CP r13, r15
JMP :6
2: ADDI64 r254, r254, 40d
JALA r0, r31, 0a
code size: 270
ret: 0
status: Ok(())