Multiline MPASM __config ?

Is there a way to continue a __config directive onto a second line in PIC (MPASM) assembler?

Reply to
MC
Loading thread data ...

I dont know of *any* way to continue a line!

As the parameters of a __config directive evaluate to a single numeric expression it should be possible however to use the equ directive to achieve the same result. Untested example: > _cfg equ _BODEN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON > __config _cfg & _WDT_OFF & _LVP_OFF & _MCLRE_ON & _XT_OSC

If MPASM gives an error with multiple __config directives using this method you may need to group the equ and the __config directives separately rather than interleaved.

--
Ian Malcolm.   London, ENGLAND.  (NEWSGROUP REPLY PREFERRED)
ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk
[at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL:
Reply to
IanM

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.