mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
22 lines
365 B
Lua
22 lines
365 B
Lua
%import math
|
|
%import textio
|
|
%zeropage basicsafe
|
|
|
|
; Note: this program is compatible with C64 and CX16.
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
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()
|
|
}
|
|
}
|
|
}
|