prog8/examples/test.p8
2023-03-19 00:48:12 +01:00

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
}
}