prog8/examples/test.p8

70 lines
1.0 KiB
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2022-08-28 16:43:15 +02:00
main {
2022-08-21 19:57:52 +02:00
2022-08-07 13:45:03 +02:00
sub start() {
ubyte v1 = 1
uword v2 = 1
ubyte counterb
uword counter
repeat v1-1 {
txt.print("!")
}
repeat v2-1 {
txt.print("?")
}
2022-09-18 16:04:49 +02:00
for counterb in 0 to v1 {
txt.print("y1")
}
for counter in 0 to v2 {
txt.print("y2")
}
repeat v1 {
txt.print("ok1")
}
repeat v2 {
txt.print("ok2")
}
repeat v1-1 {
txt.print("!")
}
repeat v2-1 {
txt.print("?")
}
while v1-1 {
txt.print("%")
}
while v2-1 {
txt.print("*")
}
for counterb in 0 to v1-1 {
txt.print("@")
}
for counter in 0 to v2-1 {
txt.print("y#")
}
repeat 0 {
txt.print("zero1")
}
repeat $0000 {
txt.print("zero2")
}
2022-09-18 16:04:49 +02:00
}
}
2022-09-10 14:51:46 +02:00