__constant char LOGO256[] = kickasm {{ #import "xmega65graphics.asm"
    .var logo256 = LoadPicture("mega65-256.png")
    .var palette256 = getPalette(logo256)
    .print "width: "+logo256.width + " height: "+logo256.height + " colors: "+palette256.keys().size()
    // Output the graphics
    .for (var x=0; x<logo256.width; x++)
	    .for (var y=0; y<logo256.height; y++)
		    .byte getFullcolourByte(logo256, palette256, x, y)
    // Output the RGB-values of the palette
    .fill 256, getPaletteRed(palette256,i)
    .fill 256, getPaletteGreen(palette256,i)
    .fill 256, getPaletteBlue(palette256,i)
 }}
char *LOGO256_BLUE
__constant char *LOGO256_BLUE#0 = LOGO256_GREEN#0+$100 // LOGO256_BLUE
char *LOGO256_GREEN
__constant char *LOGO256_GREEN#0 = LOGO256_RED+$100 // LOGO256_GREEN
__constant char *LOGO256_RED = LOGO256+(unsigned int)$80*$80
void main()
__constant char * const main::SCREEN = (char *) 1024
char main::i
char main::i#1 // reg byte x 16.5
char main::i#2 // reg byte x 22.0

reg byte x [ main::i#2 main::i#1 ]
