echo off rem This file compiles APP1, the first example in the MPLINK Tutorial rem This file assumes that MCC17 and MPASM, and MPLINK can be found rem in your PATH statement, rem Also MCC_INCLUDE environment variable should be set to point to MCC\H rem You can set these in your AUTOEXEC.BAT file and check them by going to rem the MSDOS prompt and typing SET. rem MPLINK sets the library path to C:\MCC\LIB. If MPLAB-C17 is rem installed somewhere else, change the path in the MPLINK line below. MCC17 eeprom1.c /p=17c44 mpasm /q /o eeprom.asm mplink eeprom.o eeprom1.o eeprom.lkr /L c:\mcc\lib p17C44.o c0l17.o idata17.o -m app1.map echo off rem Notes for building this application in an MPLAB project rem 1, Name new project APP1 rem APP1.HEX - Becomes the top node of project rem 2. Set MPLINK as the language tool for APP1.HEX rem 3. Add these nodes to the project and set the language tools. rem eeprom.asm - set MPASMWIN as the language tool rem eeprom1.c - set MPLAB-C17 as the langage tool rem eeprom.lkr rem p17C44.o - this is in mcc\lib rem C0L17.O - this is in mcc\lib rem IDATA17.O - this is in mcc\lib rem 4. Edit the APP1 MPLAB Project, since one of the files includes rem the P17C44.H header file: rem Include path = c:\mcc\h