prog8/examples/test.p8

22 lines
365 B
Plaintext
Raw Normal View History

2023-03-19 00:24:05 +01:00
%import math
2023-03-19 13:10:41 +01:00
%import textio
%zeropage basicsafe
2023-03-19 00:24:05 +01:00
; Note: this program is compatible with C64 and CX16.
2023-03-18 00:16:18 +01:00
main {
2023-03-19 00:24:05 +01:00
sub start() {
2023-03-19 13:10:41 +01: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 01:12:48 +01:00
}
2023-03-19 00:24:05 +01:00
}
}