holey-bytes/lang/tests/son_tests_tests_ptr_to_ptr_copy.txt

33 lines
614 B
Plaintext
Raw Normal View History

2024-10-21 12:57:55 -05:00
main:
ADDI64 r254, r254, -20480d
LI64 r8, 64d
LI64 r6, 1024d
LI64 r10, 1d
LI64 r9, 0d
ADDI64 r7, r254, 0d
ADDI64 r11, r254, 10240d
BMC r11, r7, 10240h
4: JLTS r9, r6, :0
LI64 r8, 10d
CP r11, r10
3: JLTS r11, r8, :1
LD r12, r254, 2048a, 1h
ANDI r1, r12, 255d
2024-10-21 12:57:55 -05:00
JMP :2
1: ADD64 r9, r11, r10
MUL64 r5, r11, r6
ADD64 r11, r5, r7
BMC r7, r11, 1024h
CP r11, r9
2024-10-21 12:57:55 -05:00
JMP :3
0: ADD64 r5, r9, r10
ADD64 r3, r9, r7
ST r8, r3, 0a, 1h
CP r9, r5
2024-10-21 12:57:55 -05:00
JMP :4
2: ADDI64 r254, r254, 20480d
2024-10-21 12:57:55 -05:00
JALA r0, r31, 0a
code size: 214
2024-10-21 12:57:55 -05:00
ret: 64
status: Ok(())