Hi Colin, You might like to check the definition of CMCON for the 16F876A Regards Sergio Masci ----- Original Message ----- From: cdb To: Sent: Saturday, December 13, 2003 9:43 AM Subject: [PIC]:MPLAB 6.40 oddity? First off I must preface what I'm about to say by stating that normally I use my C compiler and linker for ASM work and so rarely use MPLAB. I'm trying to help someone else who uses MPLAB and I came across this what appears to be a bug. The disassembler window doesn't seem to disassemble accurately. The original ASM as assembled using MPLAB for 16F876A START clrf PORTA clrf PORTB PAGE1 movlw H'07' movwf CMCON movwf ADCON1 PAGE0 Page 1 and 0 are macros. Now in the program memory window under the MACHINE tab we get Addr OPCODE DISS 003F 0185 CLRF 0x5 0040 0186 CLRF 0x6 0041 1683 bsf 0x3, 0x5 0042 3007 movlw 0x7 0043 009c movwf 0x1c 0044 009f movwf 0x1f 0045 1283 bcf 0x3, 0x5 So far so good! However if the SYMBOLIC tab is clicked at addresses 0043 and 44 the disassembly is 009c movwf CCPR2H 009f movwf ADCON0 Obviously the hex file is correct, but i wonder if the disassembly error might mean strange unaccounted errors with MPLAB in other situations. On another point, to me it is still annoying that MPLAB still has a restriction on the path depth. I've had to move the MPLAB projects out of my projects folder on my desktop and put it in Program files\MPLAB\projects as the windows path to the desktop folder is 54 characters long. Colin -- cdb, cdb@barnard.name on 22/03/2002 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads