prog8/examples/test.p8

22 lines
365 B
Plaintext
Raw Normal View History

2023-03-18 23:24:05 +00:00
%import math
2023-03-19 12:10:41 +00:00
%import textio
%zeropage basicsafe
2023-03-18 23:24:05 +00:00
; Note: this program is compatible with C64 and CX16.
2023-03-17 23:16:18 +00:00
main {
2023-03-18 23:24:05 +00:00
sub start() {
2023-03-19 12:10:41 +00:00
bool x
ubyte y
repeat 20 {
x = math.rnd() & 1
y = ((math.rnd()&1)!=0)
txt.print_ub(x)
txt.spc()
txt.print_ub(y)
txt.nl()
2023-03-19 00:12:48 +00:00
}
2023-03-18 23:24:05 +00:00
}
}