Hi Everyone,
Newbie question: I am new to the MEGA65 and started to play with it's BASIC in XEMU.
I was drawing multiple lines with changing colours which was working properly.
Having two rows of drawing lines (with different start point) in the same FOR-NEXT works as well.
The same was working properly for dots.
But when I try to draw both lines and dots in the same FOR-NEXT statement it seems to crash after drawing only a few dots and lines.
Can it be a bug of the emulator or is it in my code/is there any restriction that I don't know of?
Code
10 GRAPHIC CLR
20 SCREENDEF 1,1,1,4
30 SCREEN OPEN 1
40 PALETTE 1,0,0,0,0
45 FOR I=1TO15
50 PALETTE 1,I,I,15-I,8+I/3
55 NEXT
70 SCREEN SET 1,1
80 SCNCLR 0
100 PEN 0,1
105 FOR I=1TO639STEP1
115 Z= 150+(SIN(I/20)*20)
120 LINE 319,399,I,Z
125 DOT I,120
130 PEN 0,I/43+1
160 NEXT I
170 GETKEY A
180 SCREEN CLOSE 1
190 PALETTE RESTORE
Display More