Thanks very much, Adam. That seems to work fine. Sean At 10:20 AM 2/4/99 -0700, you wrote: >Sean, >I am also using MPLAB 3.40 and an MELabs Pocket programmer. >I include the following 3 lines at the top of all my assembler files and >it works fine (no errors and a HEX file is generated). Make sure >you don't start these lines in column 1 or you will get a warning >message something along the lines of "directive found at >column 1". > > LIST P=16C84, F=INHX8M, R=DEC > > INCLUDE "p16c84.inc" > __CONFIG _CP_OFF & _XT_OSC & _WDT_OFF & _PWRTE_ON > > >Hope this helps, >Adam > > > > > >shb7@CORNELL.EDU on 02/03/99 09:23:52 PM > >Please respond to PICLIST@MITVMA.MIT.EDU > >To: PICLIST@MITVMA.MIT.EDU >cc: (bcc: Adam Bryant/PEAK/MOORE) >Subject: MPLAB v3.4 question > > > > >Hi all, >I am used to using a different assembler but I recently switched to MPLAB. >It works fine except for one thing: if I try to specify the config bits in >my .ASM file, I get the error: >Error[149] D:\PICASM\FLASH1.ASM 54 : Directive only allowed when >generating an object file >I don't see any option to switch from a .HEX file to an .O file. On a >hunch, I tried adding a /o to the MPASM command line, and the error >stopped, but now it can't find the .HEX file, presumably because it >generated a .O file instead. >How do I get it so I can specify the config fuses and just generate a .HEX >so I can feed it to my programmer software (MELabs EPIC Pocket >Programmer)??? >I have been manually specifying the fuses in the programmer software, but I >want to give this code to someone else and I don't want them to have to >bother doing that. >Oh, just one other question, how can I specify in my .ASM file the default >radix and can someone give me the list of radix overrides (I know it has >been posted before, but unfortunately I deleted it). >Thanks very much, >Sean >| >| Sean Breheny >| Amateur Radio Callsign: KA3YXM >| Electrical Engineering Student >\--------------=---------------- >Save lives, please look at http://www.all.org >Personal page: http://www.people.cornell.edu/pages/shb7 >mailto:shb7@cornell.edu Phone(USA): (607) 253-0315 ICQ #: 3329174 > | | Sean Breheny | Amateur Radio Callsign: KA3YXM | Electrical Engineering Student \--------------=---------------- Save lives, please look at http://www.all.org Personal page: http://www.people.cornell.edu/pages/shb7 mailto:shb7@cornell.edu Phone(USA): (607) 253-0315 ICQ #: 3329174