在程式一開始,使用16f877的標準定義檔方式如下: list p=16f877 #include <p16f877.inc>
經build all後!秀出結果如下: Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPASM.exe" /q /p16F877 "test1.asm" /l"test1.lst" /e"test1.err" Error[105] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 6 : Cannot open file (Include File "pl6f877.ASM" not found) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 21 : Symbol not previously defined (PCLATH) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 22 : Symbol not previously defined (TRISC) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 23 : Symbol not previously defined (TRISC) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 24 : Symbol not previously defined (PORTC) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 25 : Symbol not previously defined (PORTC) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 29 : Symbol not previously defined (PCLATH) Message[306] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 32 : Crossing page boundary -- ensure page bits are set. Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 33 : Symbol not previously defined (PCLATH) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 34 : Symbol not previously defined (PORTC) Error[113] D:\HUGO\MICROC~1\TEST\TEST1\TEST1.ASM 72 : Symbol not previously defined (PCL) Halting build on first failure as requested. BUILD FAILED: Sun Sep 25 22:30:56 2005