Thanks bbarney,
Didn`t think so, as it`s just for contrast adjustment, but wasn`t sure, confirmed it (changed for different trimpot, same result) just before I got back here and read post. I had double checked everything and I agree with you, as I had originally suspected, it does look like it has come down to the code, unfortunately I can`t post it, but have posted the following, error messages, any clues on how to fix?
I`m thinking that in the following case for ... retlw ' '... , I should remove ' ', so instead of ... retlw 'Z' , I`d use ...retlw Z , ??
As it seems everywhere there is ' ' or 'value' , there is error.
FOR EXAMPLE:
(Other)ASM MPASM
Decimal 153 D'153'
Hex $2B H'2B' or 0x2B
Binary %10010110 B'10010110'
ASCII 'C' 'C' or A'C'
Octal - O'777' (not recognised by other asm)
.EQU EQU (with/without decimal point)
.ORG ORG (with/without decimal point)
.END END (with/without decimal point)
LABEL: LABEL (with/without colon)
Errors like
Warning[205] : Found directive in column 1. (ENDC)
Message[302] : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[113] : Symbol not previously defined (NEGATEA)
Error[113] : Symbol not previously defined (BIN2DEC)
Error[113] : Symbol not previously defined (SUBTRACT)
Error[113] : Symbol not previously defined (TXBYTE)
Error[113] : Symbol not previously defined (FLUSHRXBUFFER)
Error[113] : Symbol not previously defined (SENDNEXT) etc.....
That was in one error log. Another list shows
unrecognized instruction. (LIST)
unrecognized directive. (__CONFIG)
unrecognized instruction. (INCLUDE)
unrecognized instruction. (CBLOCK)
unrecognized instruction. (ENDC)
unrecognized instruction. (ORG)
unrecognized instruction. (GOTO)
EXAMPLE:- 0888 0000 goto SHOWCHIPS ; yes
Label not found: (GIEOFF)
label value misalligned. (GIEOFF)
unrecognized instruction. (GIEOFF)
unrecognized instruction. (BTFSC)
Label not found: (LCDSET)
label value misalligned. (LCDSET)
unrecognized instruction. (LCDSET)
unrecognized instruction. (CLRF)
Label not found: (LCDST2)
label value misalligned. (LCDST2)
unrecognized instruction. (LCDST2)
unrecognized instruction. (CALL)
unrecognized instruction. (INCF)
unrecognized instruction. (BTFSS)
unrecognized instruction. (RETURN)
Label not found: (TABLCD)
unrecognized instruction. (RETLW)
EXAMPLE OF RELTW :-
0123 0000 retlw ' '
0124 0000 retlw 'Z'
Label not found: (MESSAG5)
label value misalligned. (MESSAG5)
unrecognized instruction. (MESSAG5)
Label not found: (START)
label value misalligned. (START)
unrecognized instruction. (START)
unrecognized instruction. (BCF)
unrecognized instruction. (CLRF)
EXAMPLE:- 0000 0000 clrf PORTA
unrecognized instruction. (MOVWF)
EXAMPLE:- 0000 0000 movwf TRISB
unrecognized instruction. (GETCHIP)
EXAMPLE:- 0321 0000 GETCHIP clrf WADDRH ; set write address MSB
unrecognized instruction. (COMF)
EXAMPLE:- 0456 0000 comf MEMLO,F ; invert value
unrecognized instruction. (XORWF)
EXAMPLE:- 0666 0000 xorwf VALIDITY,W ; is 2nd read value same as 1st?
unrecognized instruction. (MAIN)
label value misalligned. (MAIN)
Label not found: (MAIN)
EXAMPLE:- 0555 0000 MAIN: btfss RECORD,1 ; is record switch on (low)
Label not found: (CHECKPC)
label value misalligned. (CHECKPC)
unrecognized instruction. (CHECKPC)
EXAMPLE:- 0777 0000 CHECKPC: call WAITINGPC
Label not found: (CHECKPC2)
label value misalligned. (CHECKPC2)
unrecognized instruction. (CHECKPC2)
EXAMPLE:- 0111 0000 CHECKPC2: btfss PORTB,4 ; is FUNCTION switch on (low)?
unrecognized instruction. (SUBLW)
EXAMPLE:- 0590 0000 sublw 'X' ; Is this a 'X' ?
unrecognized instruction. (ANDLW)
EXAMPLE:- 0621 0000 andlw %00000100
When using build function, that is, putting the same script/code through MPLAB
I get the following:
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F877 "FILE.ASM" /l"FILE.lst" /e"FILE.err" /o"FILE.o" /c-
Warning[205] C:\FILE.ASM 116 : Found directive in column 1. (ENDC)
Message[302] C:\FILE.ASM 395 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 398 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 400 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 402 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 403 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 404 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 406 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[202] C:\FILE.ASM 835 : Argument out of range. Least significant bits used.
Message[302] C:\FILE.ASM 1102 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1123 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1142 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1163 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1202 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1222 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[202] C:\FILE.ASM 1355 : Argument out of range. Least significant bits used.
Message[302] C:\FILE.ASM 1356 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1358 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[202] C:\FILE.ASM 1470 : Argument out of range. Least significant bits used.
Message[302] C:\FILE.ASM 1500 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1502 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1503 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 1505 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2005 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2009 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2011 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2012 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2015 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2017 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2018 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[202] C:\FILE.ASM 2034 : Argument out of range. Least significant bits used.
Error[115] C:\FILE.ASM 2059 : Duplicate label ("CHECKIT" or redefining symbol that cannot be redefined)
Warning[202] C:\FILE.ASM 2082 : Argument out of range. Least significant bits used.
Warning[202] C:\FILE.ASM 2096 : Argument out of range. Least significant bits used.
Message[302] C:\FILE.ASM 2187 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2189 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2552 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2687 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2703 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\FILE.ASM 2709 : Register in operand not in bank 0. Ensure that bank bits are correct.
BUILD FAILED: Mon Nov 20 19:54:46 2006
Thanks