holey-bytes/lang/tests/son_tests_string_flip.txt

43 lines
777 B
Plaintext
Raw Normal View History

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