holey-bytes/lang/tests/son_tests_pointers.txt
2024-10-17 22:29:09 +02:00

27 lines
513 B
Plaintext

drop:
JALA r0, r31, 0a
main:
ADDI64 r254, r254, -56d
ST r31, r254, 8a, 48h
LI64 r32, 1d
ADDI64 r33, r254, 0d
ADDI64 r34, r33, 1000d
ADDI64 r35, r34, -1000d
ST r32, r254, 0a, 8h
CP r2, r35
JAL r31, r0, :modify
CP r2, r32
JAL r31, r0, :drop
LD r36, r35, 0a, 8h
ADDI64 r1, r36, -2d
LD r31, r254, 8a, 48h
ADDI64 r254, r254, 56d
JALA r0, r31, 0a
modify:
LI64 r3, 2d
ST r3, r2, 0a, 8h
JALA r0, r31, 0a
code size: 212
ret: 0
status: Ok(())