Hi, I'm having issues with implementing arrays in 7800Basic, the online manual appears to have an example that makes no sense to me, it doesn't show how to declare an Array?
Regular variables can be accessed as arrays in 7800basic. Doing so will access memory locations next to the variable in question.
The following sets variables "a", "b", and "c" to 0.a=0
Using array notation will allow you to loop through elements without a lot of duplicated code, providing you've used dim to place the elements side by side in memory.
I assume to declare its like my example below?
dim enemyX = var1 dim enemyX = var2 dim enemyX = var3
this means I can loop through them like this?
for temp1 = 0 to 2 if enemyX[temp1] >160 then enemyX[temp1] = 0 next
Also...getting the _length of data appears to be unclear to me, I get an error about it been before the data statement or something...