holey-bytes/lang/tests/son_tests_generic_functions.txt

39 lines
664 B
Plaintext
Raw Normal View History

2024-10-22 00:20:08 -05:00
add:
2024-11-15 15:35:03 -06:00
CP r13, r2
CP r14, r3
ADD64 r13, r13, r14
CP r1, r13
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
add:
2024-11-15 15:35:03 -06:00
CP r13, r2
CP r14, r3
ADD32 r13, r13, r14
CP r1, r13
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
2024-11-23 08:28:27 -06:00
add:
JALA r0, r31, 0a
2024-10-22 00:20:08 -05:00
main:
ADDI64 r254, r254, -32d
ST r31, r254, 0a, 32h
2024-11-23 08:28:27 -06:00
JAL r31, r0, :add
2024-11-15 15:35:03 -06:00
LI32 r32, 2w
CP r2, r32
CP r3, r32
2024-10-22 00:20:08 -05:00
JAL r31, r0, :add
CP r32, r1
2024-11-15 15:35:03 -06:00
LI64 r33, 3d
LI64 r34, 1d
CP r2, r34
CP r3, r33
2024-10-22 00:20:08 -05:00
JAL r31, r0, :add
2024-11-15 15:35:03 -06:00
CP r33, r1
ANDI r32, r32, 4294967295d
SUB64 r32, r32, r33
CP r1, r32
LD r31, r254, 0a, 32h
ADDI64 r254, r254, 32d
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
2024-11-23 08:28:27 -06:00
code size: 209
2024-10-22 00:20:08 -05:00
ret: 0
status: Ok(())