mirror of
https://github.com/irmen/prog8.git
synced 2024-12-11 19:49:45 +00:00
18 lines
295 B
Lua
18 lines
295 B
Lua
%import math
|
|
%zeropage basicsafe
|
|
|
|
; Note: this program is compatible with C64 and CX16.
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
ubyte[255] BC
|
|
bool[255] DX
|
|
|
|
BC[2] = math.rnd() & 15
|
|
BC[3] = math.rnd() & 15
|
|
BC[4] = math.rnd() & 15
|
|
;DX[2] = math.rnd() & 1
|
|
}
|
|
}
|