#include	<stdio.h>
#include	<math.h>

FILE	*fpw;

#define PAI	3.14159265358979323844
#define RAG	PAI/180.0

main()
{
	char	c[125];

	if(( fpw = fopen("en1.dat","w")) == NULL){
		fprintf(stderr,"Write file open error !!\n");
		exit(1);
	}

	en();

	fclose(fpw);

}

en()
{
	double	i,r,x,y;

	fprintf(fpw,"WINAREA\tEQU\t$\n");
	fprintf(fpw,"\tHEX\t");
	r=255.0;
	y=0.0;
	while(y<=r){
		x=sqrt(r*r-y*y);
		x=x+0.5;
		fprintf(fpw,"%02X",(unsigned char)x);
		y++;
		if(y-(int)(y/8)*8==0){
			fprintf(fpw,"\n\tHEX\t");
		}
		else if(y<=r){
			fprintf(fpw,",");
		}
	}
	fprintf(fpw,"\n;\n;\n");
}
