Ho iniziato da poco a giocare con i PIC e gia' incontro le prime cose strane. Prima cosa nel Mpasm 2.15 non è presente il pic16f84a ma solo il 16f84. Ci sono versioni successive del compilatore? Seguendo Tanzilli ho scaricato sia il p16f84.inc che il file asm21500.zip. Compilando il programma LED.ASM su un Pc con W2000, a parte le segnalazioni riportate sotto il compilatore crea il file hex.
MPASM 02.15 Released LED.ASM 1-31-2006 8:48:57 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT VALUE
00001 ;************************************************** 00002 ; Pic by example 00003 ; LED.ASM 00004 ; 00005 ; (c) 2004, Sergio Tanzilli 00006 ;
Su un altro Pc con W98SE invece non riesco a compilare. Segue inizio e fine del file LST.
MPASM 02.15 Released LED.ASM 1-30-2006 20:16:58 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT VALUE
00001 ;************************************************** 00002 ; Pic by example 00003 ; LED.ASM 00004 ; 00005 ; (c) 2004, Sergio Tanzilli 00006 ;
0000 00027 Count RES 2 00028 00029 ;Reset Vector 00030 ;Start point at CPU reset 00031 Error[147] : Directive not allowed when generating an object file (ORG) 00032 ORG 0x00 00033 Warning[207]: Found label after column 1. (bsf) Error[122] : Illegal opcode (STATUS) 00034 bsf STATUS,RP0 00035 Warning[207]: Found label after column 1. (movlw) Error[122] : Illegal opcode (B) 00036 movlw B'00011111' Warning[207]: Found label after column 1. (movwf) Error[122] : Illegal opcode (TRISA) 00037 movwf TRISA 00038
......................CUT
Errors : 31 Warnings : 21 reported, 0 suppressed Messages : 1 reported, 0 suppressed
C'e' qualche problema di compatibilita' tra MPASM e W98?
Grazie
-------------------------------- Inviato via