itch.io/t/6642184/const-array-access-seems-broken-in-13Const array access seems broken in 1.3/t/6642184/const-array-access-seems-broken-in-13Sun, 19 Jul 2026 00:05:28 GMTSun, 19 Jul 2026 00:05:28 GMTSun, 19 Jul 2026 00:05:28 GMT

It seems like the act of reading a const array either mangles the array or subsequent reads are reading the wrong thing. This is a regression from 1.2.

@OPTION SYSTEM vic20.orig
'   1
'   2631
'   84268421
const PIPS(5) as u8 = %
    .X......        
    ..X....X        
    .X..XX..        
    ..X.XX.X        
    .XX.XX.X        
    ..XXXXXX        
END%
print PIPS[2]; " "; PIPS[2] & 1   > 0
print PIPS[2]; " "; PIPS[2] & 2   > 0
print PIPS[2]; " "; PIPS[2] & 4   > 0
print PIPS[2]; " "; PIPS[2] & 8   > 0
print PIPS[2]; " "; PIPS[2] & 16  > 0
print PIPS[2]; " "; PIPS[2] & 32  > 0
print PIPS[2]; " "; PIPS[2] & 64  > 0
print PIPS[2]; " "; PIPS[2] & 128 > 0

Output (I would expect to see 76s all the way down the first column):

**** cbm basic v2 ****
3583 bytes free
ready.
load"pips",8,1
searching for pips
loading
ready.
run:
76 1
255 1
255 1
255 1
255 1
255 1
255 1
255 1
ready.
]]>
/t/6642051/vic-20-should-the-compiled-program-be-runable-more-than-onceVIC-20: Should the compiled program be RUN'able more than once?/t/6642051/vic-20-should-the-compiled-program-be-runable-more-than-onceSat, 18 Jul 2026 23:15:52 GMTSat, 18 Jul 2026 23:15:52 GMTSat, 18 Jul 2026 23:15:52 GMT(BTW thanks for improving arrays in procs and lfsr_range in 1.3.)

VIC-20: Should the compiled program be RUN'able more than once?

I'm not sure if this is a VICE emulator thing or a Crustybasic thing.

The first load/run was initiated by drag/dropping the .prg onto the emulator window. (It's just testing my array shuffle routine.)

The second run was me just typing 'run' and hitting enter (the program does not run a second time.)

**** cbm basic v2 ****
3583 bytes free
ready.
load"ninja",8,1
searching for ninja
loading
ready.
run:
1 1 1 1 2 2 2 3 3 4 4
1 3 1 2 2 1 3 4 1 4 2
ready.
run
ready.
]]>
/t/6554548/unknown-function-or-routine-rndunknown function or routine 'rnd'/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.)

]]>
/t/6554590/unclear-how-to-pass-arrays-to-procs-use-them-inside-the-procUnclear how to pass arrays to procs & use them inside the proc/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.

]]>
/t/6522917/avoid-key-repeatsAvoid key repeats?/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
]]>