Is there a way to continue a __config directive onto a second line in PIC (MPASM) assembler?
Multiline MPASM __config ?
Jun 07, 2009
1 Replies
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:
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required