2023-03-19 00:24:05 +01:00
|
|
|
%import math
|
2023-03-19 13:10:41 +01:00
|
|
|
%import textio
|
2023-03-16 19:36:16 +01:00
|
|
|
%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
|
|
|
|
2022-10-22 13:33:35 +02:00
|
|
|
main {
|
2023-03-16 19:36:16 +01:00
|
|
|
|
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
|
|
|
}
|
2022-12-04 16:02:58 +01:00
|
|
|
}
|