It takes a while to set up the test data in lines from 63995 through to 63999; the scroll logic is in line 20. The obvious limitation with BASIC strings is that a string can only be up to 255 characters in length. The scroller actually works faster than I expected, so could probably add in pixel scrolling in there, and sort out the screen tearing. By using some sort of compression in the strings I could probably do some sort of tiling system or something. Don't try this at 1mhz

Line 0 sets the SuperCPU optimisation mode to the default BASIC VIC-II set up, switches off the screen (so that the initialisation is slightly quicker, ie, declaring vars and building the test data) - it also clears the screen and sets the border and screen colour.

The variable h is used for the pixel scrolling - which is (peek(53270)and 248)+pixel position from 7 to zero counting down. wait p,p1 is waiting for the raster to be at approximately the bottom line of the screen at location 1984; the idea is that the test data is outputted from this point at the screen redraw to prevent tearing in the scroll. Not 100% as this is BASIC, but close enough.

Now... for a tiling system

Regards,

Shaun.

BASIC Programming - making the mistakes so that you don't have to.Circles and Squares.
Nothing I post here will stand up in a court of law.