One would expect the MPASM to report such a blatant error in syntax, but it doesn't! I just compiled the faulty source again and the following is the output by MPASM: ---------------------------------------------- Building CIRTEST.HEX... Compiling CIRTEST.ASM: Command line: "C:\PROGRA~1\MPLAB\MPASMWIN.EXE /p16F877 /q C:\DOCUME~1\LKP3\DESKTOP\SERIAL~1\CIRTEST.ASM" Build completed successfully. ---------------------------------------------- =/. This was the first time I've used the iorwf instruction and I incorrectly assumed the syntax was correct, since I received no error from the compiler. Maybe I should write Microchip a note about my experience, such an error is easy to catch and could save other people time. I spent a lot of time debugging, and narrowed it down to the few lines surrounding iorwf, never suspecting there was a syntax error. Lindsay ----- Original Message ----- From: "Bob Barr" To: Sent: Saturday, January 11, 2003 2:01 PM Subject: Re: [PIC] Succesive A/D conversions > On Sat, 11 Jan 2003 10:40:44 -0500, Lindsay Pallickal wrote: > > > Thank you! So simple, but so elusive. > > > > Simple, yes. Easy-to-make mistake, yes. Not really elusive, though. > > MPASM did give you a warning at that line, didn't it? > > I forget the exact number but you should have gotten a warning there > saying something along the lines of "using default destination". > > > Warnings tell you to take a little closer look at your code. > > > Regards, Bob > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads