#include <stdio.h>

unsigned char surtb3[]={
        0xFF,0xFF,0xFE,0xFF,0xFF,0xFD,0xFF,0xFF,
        0xFB,0xFF,0xFF,0xF7,0xFF,0xFF,0xEF,0xFF,
        0xDF,0xFF,0xFF,0xBF,0xFF,0x7F,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFF,0xFD,
        0xFB,0xF7,0xFF,0xEF,0xDF,0xBF,0x7F,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,
        0xFD,0xF3,0xEF,0xDF,0x3F,0xFF,0xFF,0xFF,
        0xFF,0xFF,0xFC,0xF3,0xCF,0x3F,0xFF,0xFF,
        0xFF,0xFC,0xF3,0x8F,0x7F,0xFF,0xFE,0xE1,
        0x1F,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,
        0xFF,0xFD,0xFF,0xFB,0xFF,0xF7,0xFF,0xEF,
        0xDF,0xFF,0xBF,0xFF,0x7F,0xFF,0xFF,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,
        0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,0xFF,
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xF9,0xF7,
        0xCF,0x3F,0xFF,0xFF,0xFF,0xFF,0xFC,0xE3,
        0x9F,0x7F,0xFF,0xFF,0xFC,0xC3,0x3F,0xFF,
        0xFE,0xE1,0x1F,0xFF
};

unsigned char surtb3_gen[167];

int main(int argc, char **argv) {

	int i,diffs=0;

	for(i=0;i<167;i++) {
		if ((i&1)==0) printf("%d\n",surtb3[i]);
	}

#if 0
	for(i=0;i<167;i++) {
		surtb3_gen[i]=0xff;
	}

	/* calc diff */
	for(i=0;i<167;i++) {
		if (surtb3_gen[i]!=surtb3[i]) diffs++;
	}
	printf("%d differences!\n",diffs);
#endif

//	ldy	#0
//	lda	compressed,Y
//	ror
//	bcs	streamofff

//streamofff
//	tax
//	sta	output
//	inc	output
//	dex
//	bpl	loop



//	ldx	#0
//	ldy	#7
//	ror	bitmap,X
//	bcc	blah
//	lda	IT
//	inc	smc
//	jmp	urgh
//blah:
//	lda	#$ff
//urgh:
//	sta	surtb3
//	inc	smc
//	dey
//	bpl	inner
//	inx
//	cpx	#20
//	bne	outer

#if 0
	for(i=0;i<83;i++) {
		printf("%d ",(~surtb3[i])&0xff);
	}
	printf("\n");

	for(i=0;i<83;i++) {
		printf("%d ",(~surtb4[i])&0xff);
	}
	printf("\n");
#endif
	return 0;
}


//  0 0 1  0  0   2 0 0 4  0  0   8   0  0  16  0
// 32 0 0 64  0 128 0 0 0  0  0   0   0  0   0  0
//  0 0 0  0  0   1 0 2 4  8  0  16  32 64 128  0
//  0 0 0  0  0   0 0 1 2 12 16  32 192  0   0  0
//  0 0 3 12 48 192 0 0 0  3 12 112 128  0   1 30 224 0 0


//0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 4 0 8 0 16 32 0 64 0 128 0 0 0 0 0 0 0 0 0 0 1 2 4 8 16 32 64 128 0 0 0 0 0 0 1 6 8 48 192 0 0 0 0 3 28 96 128 0 0 3 60 192 0 1 30 224 
