prog8/examples/test.p8
Irmen de Jong 7ebc9c79cf added string.append()
cleanup redundant diskio prefixes
2023-11-10 23:53:59 +01:00

22 lines
403 B
Lua

%import textio
%import string
%zeropage basicsafe
main {
sub start() {
str name = "irmen????????????"
name[5] = 0
txt.print(name)
txt.nl()
ubyte length = string.append(name, ".prg")
txt.print_ub(length)
txt.chrout('[')
for cx16.r0L in 0 to length-1 {
txt.chrout(name[cx16.r0L])
}
txt.chrout(']')
}
}