slc/examples/strings.slc

24 lines
368 B
Plaintext
Raw Normal View History

2025-01-08 01:59:07 +01:00
"word_name" gen_str // -> session storage-be - amúgy ez utf8
"abc" "df" strcon
/*
abc0
0004
df00
0002
*/
// TODO: implement as C builtin instead.. but doable this way
:builtin strcon @off1 @mod1 @
dup
7 + 4 /
strcon@off1(_) // (_) azt jelenti, hogy pop és változóba tesz, (.) means peek and put in var
dup
4 %
strcon@mod1(_)
strcon@off1
popat
+
;