hi everyone!
I am new to MSX basic programming. and I have a problem that I can't solve... can you please help me?
The problem is this if i run this listing without xbasic everything works.
But as soon as i insert xbasic (call turbo on) i always have errors...
(Subscript put of range in 30)
the listing is this:
10 dim n$(4192)
20 n$="0":n$(4192)="0":n$(4192)=n$
25 call turbo on
30 for i=1 to 4192:if n$(i)="1" then 60
40 prime=i+i+1:cnt=cnt+1:k=i
50 k=k+prime:if k<4193 then n$(k)="1":goto 50
60 next i
65 call turbo off
70 print cnt
is a benchmark test...
Thanks for the reply ...
Login or register to post comments