Searching \ for 'HELP with MACRO' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=help+with+macro
Search entire site for: 'HELP with MACRO'.

Truncated match.
PICList Thread
'HELP with MACRO'
2000\01\31@163020 by M. Wahab

picon face
Using MPASM I got an error in assembling ,
when I used symbolic labels in the macro body.
This particular macro is called by two modules,
the 2nd pass assembly tends to report the macro labeling
error as the labels are duplicated.
I tried to define them as "global"     but still no luck.
However, if  I define them as "local" to the body of
the macro it seems to work. I am not sure though if it will
run correctly.
Any advice is appreciated.

Thanks

M. Wahab

2000\01\31@163815 by Quitt, Walter

flavicon
face
Either use
goto $+x
where x is the offset to where the label would be
or
since it is only used twice, just duplicate the code
or
create a subroutine and save space

I only use macros for short stuff that is done over and over
like the setup to a long call or a push/pop to a pseudo stack.

GL,
Walt....


{Original Message removed}

2000\01\31@164438 by Francisco Armenta

flavicon
face
part 0 921 bytes content-type:text/x-vcard; charset=us-ascii; (decoded 7bit)

Francisco

"M. Wahab" wrote:
{Quote hidden}

Content-Type: text/x-vcard; charset=us-ascii;
name="briones.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Francisco Armenta
Content-Disposition: attachment;
filename="briones.vcf"

Attachment converted: wonderland:briones.vcf (TEXT/CSOm) (000164C1)


'HELP with MACRO'
2000\02\01@072912 by paulb
flavicon
face
An interesting alternative, particularly for assemblers (such as
WAVRASM) which don't support the LOCAL directive, is to pass the label
as a parameter to the macro.

 Yes, I know it is then up to you to make sure you use a different
label each time you call the macro.

 (I also know that WAVRASM is "broken" and will not do forward
references in macros.)
--
 Cheers,
       Paul B.

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...