Lines and Dots in For Next statement

There are 2 replies in this Thread which has previously been viewed 1,134 times. The latest Post (May 21, 2023 at 8:34 PM) was by Snoopy.

  • 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?

  • OK. It seems that the pen colour seems to be resetting to black, I don't know why. Setting it again before every dot seemed to be an OK workaround.

  • It seems that you have actually encountered a bug here, which I can also reproduce in the emulator (with ROM 920377). If you write the DOT command first and then the LINE command, then your example program works.

    Please login to see this attachment.

    Please login to see this attachment.