I've a question:
Is passing an array to a procedure in BBC Basic(SDL) the same in BBC Basic(Z80)?
I am writing a program in BBC Basic(Z80) for Agon Light 2 but when I run the program it reports a laconic "Syntax error at line 50"
This is the example code:
Code: Select all
10 DIM A%(20)
20 FOR I%=0 TO 20
30 A%(I%)=RND(50)
40 NEXT I%
50 PROC_SHOW(A%())
60 END
100 DEF PROC_SHOW(B%())
110 SIZE%=DIM(B%(),1)
120 FOR I%=0 TO SIZE%
130 PRINT B%(I%)
140 NEXT I%
150 ENDPROC
Any hint?
Thanks,
Paolo