prog8/examples/test.p8

35 lines
679 B
Plaintext
Raw Permalink Normal View History

2023-05-16 23:10:33 +02:00
%import textio
%zeropage basicsafe
main {
2023-05-08 01:03:54 +02:00
sub start() {
str name1 = "name1"
str name2 = "name2"
uword[] @split names = [name1, name2, "name3"]
2023-05-31 20:09:03 +02:00
uword ww
; 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)
names[idx]++
2023-06-03 22:22:13 +02:00
txt.print_uwhex(names[1], true)
names[idx]--
2023-06-03 22:22:13 +02:00
txt.print_uwhex(names[1], true)
2023-05-31 20:09:03 +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
}
}