#include #include #include #include #define BLACK -1 #define EMPTY -2 #define BEG 140 #define END 244 FILE *f1; void P(char *str,...) { char out[256]; va_list argp; va_start(argp,str); vsprintf(out,str,argp); fprintf(f1,"%s\n",out); va_end(argp); } main() { int a,b,c,x,y,z,le,ri; int xt[320]; f1=fopen("zoom.inc","wt"); P("zoomt LABEL WORD"); for(a=0;a<320;a+=2) { y=a; if(!y) P("dw OFFSET @zoom0",BEG); else if(yEND) P("dw OFFSET @zoom%i",END); else P("dw OFFSET @zoom%i",y); } P("@zoom0:"); a=(160-END/2-1)&(~7); b=(160+END/2+8)&(~7); for(x=a;xri) xt[x]=BLACK; else xt[x]=((long)(x-le)*185L+(c/2))/(long)c; } le=160-END/2-1; le&=~7; ri=160+END/2+8; ri&=~7; for(x=0;x