Add std/string/array/swap.lb

This commit is contained in:
2024-06-18 18:49:57 +05:00
parent 18f8959aca
commit b1713744c9
+21
View File
@@ -0,0 +1,21 @@
@ 0 ; Get both arguments
args 0
size
#exec std/string/array/rev.lb
args 1
dup
; |str_size str_size...>
@ 1
kjz 2
#expr -
args 1
#exec std/rot.lb
#exec std/rot.lb
jmp 1
@ 2
pop
#exec std/string/array/rev.lb