On Mon, 29 Sep 1997, WF AUTOMA=?iso-8859-1?Q?=C7=C3O ?= wrote: > Alan G. Smith wrote: > > > > I hope someone can help me. > > I had the 770 version of HI-TECH C and I tried to apply the patches on the > > website. > > Unfortunately, I had changed one of the samples and now the patch won't apply. > > My CD-ROM has STOPPED working and I have loaned someone my notebook computer. > > Can someone PLEASE either send me the ORIGINAL LED.C from the CD-ROM OR the > 3.20 > > version > > of the PATCH program. (The 771 patch should install it for you.) Here you are. The both of them are included with this mail. Sunthiti Patchararungruang Content-Type: TEXT/PLAIN; charset=US-ASCII; name="LED.C" Content-ID: Content-Description: #include /* * Demo program * * Flashes LEDs on Port B, responds to switch press * on RA1. Usable on PICDEM board. * * Copyright (C)1997 HI-TECH Software. * Freely distributable. */ #define PORTBIT(adr, bit) ((unsigned)(&adr)*8+(bit)) static bit button @ PORTBIT(PORTA, 1); main(void) { unsigned i; unsigned char j; TRISB = 0; /* all bits output */ j = 0; for(;;) { PORTB = 0x00; /* turn all on */ for(i = 100 ; --i ;) continue; PORTB = ~j; /* output value of j */ for(i = 100 ; --i ;) continue; if(button == 0) /* if switch pressed, increment */ j++; } } Content-Type: APPLICATION/octet-stream; name="PATCH.EXE" Content-ID: Content-Description: Attachment converted: wonderland:PATCH.EXE (bina/mdos) (00007BB0)