Previous by date: | 8 Jan 2015 06:20:10 -0000 labels in macros?, Joe Pfeiffer |
Next by date: | 8 Jan 2015 06:20:10 -0000 Re: labels in macros?, Joe Pfeiffer |
Previous in thread: | 8 Jan 2015 06:20:10 -0000 labels in macros?, Joe Pfeiffer |
Next in thread: | 8 Jan 2015 06:20:10 -0000 Re: labels in macros?, Joe Pfeiffer |
Joe Pfeiffer wrote: > is there a way to auto-generate labels in macros? Yes: local labelname, as used in spin2 below. spin macro n movlw n addlw 0xff btfss STATUS,Z goto $-2 endm spin2 macro a,b local s2s movlw a movwf spinreg s2s spin b decfsz spinreg,f goto s2s endm //Peter
Previous by date: | 8 Jan 2015 06:20:10 -0000 labels in macros?, Joe Pfeiffer |
Next by date: | 8 Jan 2015 06:20:10 -0000 Re: labels in macros?, Joe Pfeiffer |
Previous in thread: | 8 Jan 2015 06:20:10 -0000 labels in macros?, Joe Pfeiffer |
Next in thread: | 8 Jan 2015 06:20:10 -0000 Re: labels in macros?, Joe Pfeiffer |