2023-05-16 21:10:33 +00:00
|
|
|
%import textio
|
2023-06-02 21:39:57 +00:00
|
|
|
%zeropage basicsafe
|
2023-04-10 14:59:08 +00:00
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2023-05-07 23:03:54 +00:00
|
|
|
sub start() {
|
2023-05-30 19:54:19 +00:00
|
|
|
str name1 = "name1"
|
|
|
|
str name2 = "name2"
|
2023-06-02 21:39:57 +00:00
|
|
|
|
2023-06-03 17:14:45 +00:00
|
|
|
uword[] @split names = [name1, name2, "name3"]
|
2023-06-02 21:39:57 +00:00
|
|
|
|
2023-05-31 18:09:03 +00:00
|
|
|
uword ww
|
2023-06-02 21:39:57 +00:00
|
|
|
; for ww in names {
|
|
|
|
; txt.print(ww)
|
|
|
|
; txt.spc()
|
|
|
|
; }
|
|
|
|
; txt.nl()
|
|
|
|
ubyte idx=1
|
|
|
|
names[idx] = 2000
|
|
|
|
txt.print_uw(names[1])
|
|
|
|
names[idx]++
|
|
|
|
txt.print_uw(names[1])
|
|
|
|
names[idx]--
|
|
|
|
txt.print_uw(names[1])
|
2023-05-31 18:09:03 +00:00
|
|
|
|
2023-06-03 17:14:45 +00:00
|
|
|
names = [1111,2222,3333]
|
|
|
|
for ww in names {
|
|
|
|
txt.print_uw(ww)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
2023-05-31 18:09:03 +00:00
|
|
|
txt.print("end.")
|
2023-03-18 23:24:05 +00:00
|
|
|
}
|
2022-12-04 15:02:58 +00:00
|
|
|
}
|
2023-04-29 15:14:50 +00:00
|
|
|
|