holey-bytes/lang/tests/son_tests_string_flip.txt
2024-11-13 10:28:16 +01:00

45 lines
820 B
Plaintext

main:
ADDI64 r254, r254, -40d
LI64 r9, 1d
LI64 r8, 4d
CP r6, r0
ADDI64 r7, r254, 0d
CP r10, r6
6: JNE r10, r8, :0
LI64 r8, 2d
ADDI64 r5, r254, 32d
CP r10, r6
4: LD r1, r254, 16a, 8h
JNE r10, r9, :1
JMP :2
1: MUL64 r2, r10, r8
ADD64 r10, r10, r9
SUB64 r11, r8, r10
MUL64 r11, r11, r8
CP r1, r6
5: JNE r1, r8, :3
JMP :4
3: ADD64 r12, r1, r9
ADD64 r3, r2, r1
ADD64 r4, r11, r1
MULI64 r3, r3, 8d
MULI64 r1, r4, 8d
ADD64 r3, r7, r3
ADD64 r1, r7, r1
BMC r3, r5, 8h
BMC r1, r3, 8h
BMC r5, r1, 8h
CP r1, r12
JMP :5
0: ADD64 r4, r10, r9
MULI64 r2, r10, 8d
ADD64 r5, r7, r2
ST r10, r5, 0a, 8h
CP r10, r4
JMP :6
2: ADDI64 r254, r254, 40d
JALA r0, r31, 0a
code size: 264
ret: 0
status: Ok(())