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