Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!ames!elroy!mahendo!jplgodo!wlbr!etn-rad!jru From: jru@etn-rad.UUCP (John Unekis) Newsgroups: comp.sys.ibm.pc Subject: waiting for astrotit, something else Message-ID: <276@etn-rad.UUCP> Date: Fri, 4-Sep-87 19:26:29 EDT Article-I.D.: etn-rad.276 Posted: Fri Sep 4 19:26:29 1987 Date-Received: Sun, 6-Sep-87 03:07:29 EDT Reply-To: jru@etn-rad.UUCP (0000-John Unekis) Distribution: comp.sys.ibm.pc Organization: Eaton Inc. IMSD, Westlake Village, CA Lines: 263 For those of you who tried to use the rotor program and couldnt see the animation, I have put in a fix. The Hercules card(and clones) power up with the second page of memory disabled. Hercules includes a program HGC.COM on floppy which when placed in your autoexec.bat file will turn this memory on at boot time. Many clone makers do not include this so that the animation will not work on their systems unless some other graphics routine has turned on the memory. In order to remedy this I have placed a write to port 3BF with a value of 3 to turn on the memory. Sorry I didn't put this in right at first. -------------------------------------------------------------------- Disclaimer: Its all my fault. ihnp4!wlbr!etn-rad!jru #include char n1[4][8192],n2[4][8192],n3[4][8192],n4[4][8192]; struct memm { char nn[4][8192]; } ; main() { FILE *fp; char filename[80]; int i,j,k; long rotate,r; struct memm * mp; char * p; char * p1; char * p2; printf("Note , when done, any key followed by returns to dos\n"); printf("How Many Rotations? "); scanf("%ld",&rotate); mp = (struct memm *) 0xb8000000; p = &n1[0][0]; strcpy(filename,"n1.img"); fp = fopen(filename,"rb"); if(fp == NULL) { printf("cant open file %s\n",filename); exit(0); } i = 32764; fread(p,i,1,fp); fclose(fp); p = &n2[0][0]; strcpy(filename,"n2.img"); fp = fopen(filename,"rb"); if(fp == NULL) { printf("cant open file %s\n",filename); exit(0); } i = 32764; fread(p,i,1,fp); fclose(fp); p = &n3[0][0]; strcpy(filename,"n3.img"); fp = fopen(filename,"rb"); if(fp == NULL) { printf("cant open file %s\n",filename); exit(0); } i = 32764; fread(p,i,1,fp); fclose(fp); p = &n4[0][0]; strcpy(filename,"n4.img"); fp = fopen(filename,"rb"); if(fp == NULL) { printf("cant open file %s\n",filename); exit(0); } i = 32764; fread(p,i,1,fp); fclose(fp); graphmode(2); p = (char *) 0xb8000000; strcpy(filename,"n1.img"); fp = fopen(filename,"rb"); if(fp == NULL) { printf("cant open file %s\n",filename); exit(0); } i = 32764; fread(p,i,1,fp); fclose(fp); i = 2400; for(r=0;r