Re: More than one #v(expression) in a single line of a macro
Ben Dugan <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
Bill, I just wanted to thank you for the snippet below, which I put to good use today. It really solves a problem for me and I never would've figured it out on my own. Ben > The following seems to work: > > --------------------------------------------------------------- > list p=16f877 > include "p16f877.inc" > > inrtgt macro a, b > a#v(b) > endm > > target macro a, b > inrtgt label#v(a)_, b > endm > > inrbrn macro a, b > goto a#v(b) > endm > > brnch macro a, b > inrbrn label#v(a)_, b > endm > > org 0 > target 1,2 > movlw 0 > brnch 3, 4 > target 3, 4 > movlw 1 > brnch 1, 2 > > end > --------------------------------------------------------------- > > Bill > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > >