[HWnews] dotaz na MPLAB + PICCLITE
Pavel Prochazka
hacesoft@mujmail.cz
Neděle Duben 11 18:55:59 CEST 2004
Dobry den, stahnul jsem si MPLAB 6.50 a PICCLITE v 8.02PL1 pri pokusu o
preklad ASM me kompiler vyhodi ze mam nekolikrat definovanou konstantu, to
ma pravdu ale je definovana pomoci podmineneho prekladu. Zdrojak jsem
stahnul z microchip.com jednase o kod pro praci 93XCXX.
Da se nekde vypnou aby pri nalezeni instrukce TRIS nehlasil chybu?
KOD:
TRUE EQU 1
FALSE EQU 0
F EQU 1
S93C46 EQU FALSE
S93LC46 EQU FALSE
S93C56 EQU FALSE
S93LC56 EQU TRUE
S93C66 EQU FALSE
S93LC66 EQU FALSE
wire3 equ TRUE ; for four-wire setup equate to FALSE
org8 EQU FALSE
;
IF S93LC46
IF org8
LC468 EQU TRUE
XC46 EQU FALSE
H16 EQU FALSE
H8 EQU FALSE
ELSE
LC468 EQU FALSE
XC46 EQU TRUE
H16 EQU FALSE
H8 EQU FALSE
ENDIF
ELSE
ENDIF
IF S93C46
LC468 EQU FALSE
XC46 EQU TRUE
H16 EQU FALSE
H8 EQU FALSE
ENDIF
IF S93C56 + S93C66 + S93LC56 + S93LC66
IF org8
H8 EQU TRUE
H16 EQU FALSE
LC468 EQU FALSE
XC46 EQU FALSE
ELSE
H16 EQU TRUE
H8 EQU FALSE
LC468 EQU FALSE
XC46 EQU FALSE
ENDIF
ELSE
ENDIF
Chybove hlasky:
Executing: "C:\PICCLITE\BIN\PICL.EXE" -C -E"Mazani EEPROM.ase" "Mazani
EEPROM.as" -O"Mazani EEPROM.obj" -Q -MPLAB -16F84
Error[000] Mazani EEPROM.as 25 : syntax error
Error[000] Mazani EEPROM.as 42 : Multiply defined symbol LC468
Error[000] Mazani EEPROM.as 43 : Multiply defined symbol XC46
Error[000] Mazani EEPROM.as 44 : Multiply defined symbol H16
Error[000] Mazani EEPROM.as 45 : Multiply defined symbol H8
Error[000] Mazani EEPROM.as 50 : Multiply defined symbol LC468
Error[000] Mazani EEPROM.as 51 : Multiply defined symbol XC46
Error[000] Mazani EEPROM.as 52 : Multiply defined symbol H16
Error[000] Mazani EEPROM.as 53 : Multiply defined symbol H8
Error[000] Mazani EEPROM.as 57 : Multiply defined symbol H8
Error[000] Mazani EEPROM.as 58 : Multiply defined symbol H16
Error[000] Mazani EEPROM.as 59 : Multiply defined symbol LC468
Error[000] Mazani EEPROM.as 60 : Multiply defined symbol XC46
Error[000] Mazani EEPROM.as 62 : Multiply defined symbol H16
Error[000] Mazani EEPROM.as 63 : Multiply defined symbol H8
Error[000] Mazani EEPROM.as 64 : Multiply defined symbol LC468
Error[000] Mazani EEPROM.as 65 : Multiply defined symbol XC46
Error[000] Mazani EEPROM.as 84 : Digit out of range
Error[000] Mazani EEPROM.as 93 : Digit out of range
Error[000] Mazani EEPROM.as 96 : Digit out of range
Error[000] Mazani EEPROM.as 247 : Illegal instruction for this processor
Error[000] Mazani EEPROM.as 267 : Illegal instruction for this processor
Error[000] Mazani EEPROM.as 284 : Illegal instruction for this processor
Error[000] Mazani EEPROM.as 310 : Illegal instruction for this processor
Error[000] Mazani EEPROM.as 318 : Illegal instruction for this processor
Error[000] Mazani EEPROM.as 541 : Illegal instruction for this processor
Halting build on first failure as requested.
BUILD FAILED: Sun Apr 11 18:44:35 2004
Pavel Prochazka
Další informace o konferenci Hw-list