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