itch.iohttp://itch.iohttps://itch.io/t/6554548/unknown-function-or-routine-rndunknown function or routine 'rnd'https://itch.io/t/6554548/unknown-function-or-routine-rndMon, 29 Jun 2026 23:42:23 GMTMon, 29 Jun 2026 23:42:23 GMTMon, 29 Jun 2026 23:42:23 GMTPer docs:

RND() U8 Target specific pseudo-random byte.

Sadly, does not compile with 1.2:

unknown function or routine 'rnd'

(rand() works, though.)

]]>
https://itch.io/t/6554590/unclear-how-to-pass-arrays-to-procs-use-them-inside-the-procUnclear how to pass arrays to procs & use them inside the prochttps://itch.io/t/6554590/unclear-how-to-pass-arrays-to-procs-use-them-inside-the-procMon, 29 Jun 2026 23:57:08 GMTMon, 29 Jun 2026 23:57:08 GMTMon, 29 Jun 2026 23:57:08 GMTI have a 1D array of u8 and I want to write a "shuffle" proc to shuffle it like a deck of cards. As a stepping stone to this I tried something simpler:

proc shuffleArr(arr as addr of u8)
    arr[2] = 99 'just to see if I can do ANYTHING with the passed array
endproc
This doesn't compile:

 'arr' is a scalar variable, not an array or STRING; remove the index

Almost certainly user error on my part, but not clear how to proceed.

]]>
https://itch.io/t/6522917/avoid-key-repeatsAvoid key repeats?https://itch.io/t/6522917/avoid-key-repeatsWed, 24 Jun 2026 01:19:50 GMTWed, 24 Jun 2026 01:19:50 GMTWed, 24 Jun 2026 01:19:50 GMTThis runs, but when I press a key even very briefly, it tends to register 3 or more times.

@OPTION SYSTEM vic20.orig
CLS
while 1
    dim k as u8
    k = KEY()
    if k <> 0 then print k
endwhile
]]>