Add std/string/array/swap.lb
This commit is contained in:
parent
18f8959aca
commit
b1713744c9
21
std/string/array/swap.lb
Normal file
21
std/string/array/swap.lb
Normal 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
|
Loading…
Reference in New Issue
Block a user