holey-bytes/lang/tests/son_tests_arrays.txt
2024-11-13 10:28:16 +01:00

28 lines
551 B
Plaintext

main:
ADDI64 r254, r254, -56d
ST r31, r254, 24a, 32h
LI64 r32, 1d
ADDI64 r2, r254, 0d
ST r32, r254, 0a, 8h
LI64 r33, 2d
ST r33, r254, 8a, 8h
LI64 r34, 4d
ST r34, r254, 16a, 8h
JAL r31, r0, :pass
ADD64 r1, r1, r32
LD r31, r254, 24a, 32h
ADDI64 r254, r254, 56d
JALA r0, r31, 0a
pass:
LD r6, r2, 8a, 8h
MULI64 r9, r6, 8d
LD r7, r2, 0a, 8h
ADD64 r12, r9, r2
ADD64 r11, r6, r7
LD r3, r12, 0a, 8h
ADD64 r1, r3, r11
JALA r0, r31, 0a
code size: 231
ret: 8
status: Ok(())