holey-bytes/lang/tests/son_tests_pointers.txt

31 lines
600 B
Plaintext
Raw Normal View History

2024-09-27 09:53:28 -05:00
drop:
JALA r0, r31, 0a
main:
ADDI64 r254, r254, -40d
ST r31, r254, 8a, 32h
2024-11-15 15:35:03 -06:00
ADDI64 r32, r254, 0d
LI64 r33, 1d
ST r33, r254, 0a, 8h
2024-09-27 09:53:28 -05:00
CP r2, r32
2024-11-15 15:35:03 -06:00
JAL r31, r0, :modify
CP r2, r33
2024-09-27 09:53:28 -05:00
JAL r31, r0, :drop
2024-11-15 15:35:03 -06:00
LD r32, r254, 0a, 8h
ADDI64 r32, r32, -2d
CP r1, r32
LD r31, r254, 8a, 32h
ADDI64 r254, r254, 40d
2024-09-27 09:53:28 -05:00
JALA r0, r31, 0a
modify:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -16d
ST r32, r254, 0a, 16h
CP r13, r2
LI64 r14, 2d
ST r14, r13, 0a, 8h
LD r32, r254, 0a, 16h
ADDI64 r254, r254, 16d
2024-09-27 09:53:28 -05:00
JALA r0, r31, 0a
code size: 244
2024-09-27 09:53:28 -05:00
ret: 0
status: Ok(())