#include #include #include #include // Screen and color space #define screen ((byte *)0x0400) #define color ((byte *)0xd800) // Macro for easy access to screen and color space #define sline(x, y) (screen + 40 * (y) + (x)) #define cline(x, y) (color + 40 * (y) + (x)) // Column buffer for one prepared column of screen and color data char rbuff[25], cbuff[25]; // Split into three scrolling sections to race the beam #define SPLIT1 8 #define SPLIT2 16 // Scroll top section void scrollLeft0(void) { for(char x=0; x<39; x++) { #pragma unroll(full) for(char y=0; y