--- cdb wrote: > 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. > The code should work - did you try to simulate it? If you watch the registers, you should see that the correct ones are updated. I don't know why the disassembler picks those symbols, but you'll notice you're in the correct bank with the bsf/bcf instructions that surround it. (Those registers are at the same offset in different banks.) __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads