prog8/examples/test.p8
2023-11-14 19:06:47 +01:00

19 lines
234 B
Lua

%import string
%zeropage basicsafe
main {
sub start() {
cat("aaaaa")
}
sub cat(str s1) {
str s2 = "three"
ubyte n=2
; s1[n+1] = s1[2] ; TODO compiler crash
s2[n+1] = s2[2] ; works fine
}
}