holey-bytes/lang/tests/son_tests_string_flip.txt

45 lines
813 B
Plaintext
Raw Normal View History

2024-10-24 12:57:36 -05:00
main:
ADDI64 r254, r254, -40d
LI64 r6, 4d
LI64 r8, 1d
LI64 r4, 0d
ADDI64 r5, r254, 0d
CP r9, r4
6: JNE r9, r6, :0
LI64 r6, 2d
2024-10-27 05:32:34 -05:00
ADDI64 r7, r254, 32d
CP r9, r4
4: JNE r9, r8, :1
2024-10-24 12:57:36 -05:00
LD r1, r254, 0a, 8h
JMP :2
2024-10-27 05:32:34 -05:00
1: MUL64 r12, r9, r6
ADD64 r9, r9, r8
SUB64 r10, r6, r9
MUL64 r10, r10, r6
CP r3, r4
5: JNE r3, r6, :3
2024-10-24 12:57:36 -05:00
JMP :4
2024-10-27 05:32:34 -05:00
3: ADD64 r11, r3, r8
ADD64 r1, r12, r3
MULI64 r1, r1, 8d
ADD64 r2, r10, r3
ADD64 r1, r5, r1
MULI64 r2, r2, 8d
ADD64 r2, r5, r2
BMC r1, r7, 8h
BMC r2, r1, 8h
BMC r7, r2, 8h
CP r3, r11
2024-10-24 12:57:36 -05:00
JMP :5
0: ADD64 r2, r9, r8
MULI64 r12, r9, 8d
2024-10-26 03:45:50 -05:00
ADD64 r7, r5, r12
ST r9, r7, 0a, 8h
2024-10-24 12:57:36 -05:00
CP r9, r2
JMP :6
2: ADDI64 r254, r254, 40d
JALA r0, r31, 0a
2024-10-27 05:32:34 -05:00
code size: 271
2024-10-24 12:57:36 -05:00
ret: 2
status: Ok(())