prog8/examples/test.p8

18 lines
295 B
Plaintext
Raw Normal View History

2023-03-18 23:24:05 +00:00
%import math
%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
main {
2023-03-18 23:24:05 +00:00
sub start() {
ubyte[255] BC
bool[255] DX
2023-03-18 17:25:08 +00:00
2023-03-18 23:24:05 +00:00
BC[2] = math.rnd() & 15
BC[3] = math.rnd() & 15
BC[4] = math.rnd() & 15
;DX[2] = math.rnd() & 1
}
}