gnupic: gpasm macro object code listing?


Previous by date: 22 Jan 2002 00:25:06 -0000 gputils-0.10.0, Craig Franklin
Next by date: 22 Jan 2002 00:25:06 -0000 Re: gpasm macro object code listing?, Craig Franklin
Previous in thread:
Next in thread: 22 Jan 2002 00:25:06 -0000 Re: gpasm macro object code listing?, Craig Franklin

Subject: gpasm macro object code listing?
From: Anthony Tekatch ####@####.####
Date: 22 Jan 2002 00:25:06 -0000
Message-Id: <20020122002159.FOBU20760.tomts10-srv.bellnexxia.net@pino>

Does gpasm list the object code for macros?

I tried setting "LIST e=ON" as suggested in the gputils.pdf but got an "Error [124] : Illegal argument."

The address seems to incrememnt for the macro code but the object code is not printed in the .lst file.

Also the macro name is listed after the expanded macro, is that correct?

This is what gpasm prints from the example in AN544 (note the lack of code in the expanded macro section):
----------------------------------------------------------------------------
               00083 multiply    MACRO
               00084         variable  i ;
               00085           variable i = 0
               00086            while i < 8
               00087                 btfsc   mulplr,i
               00088                 addwf   H_byte, F
               00089                 rrf     H_byte, F
               00090                 rrf     L_byte, F
               00091             variable i = i+1 ;
               00092            endw
               00093         ENDM                    ; End of macro
               00094 ;
               00095 ;
0008           00096 mpy8x8_F
0008 01A2      00097         clrf    H_byte
0009 01A3      00098         clrf    L_byte
000A 0820      00099         movf    mulcnd,W        ; move the multiplicand to W reg.
000B 1003      00100         bcf     STATUS,C        ; Clear the carry bit in the status Reg.
               00101 ;
                   M         variable  i ;
                   M           variable i = 0
                   M            while i < 8
                   M                 btfsc   mulplr,i
                   M                 addwf   H_byte, F
                   M                 rrf     H_byte, F
                   M                 rrf     L_byte, F
                   M             variable i = i+1 ;
                   M            endw
               00102         multiply
----------------------------------------------------------------------------

--
Anthony

Previous by date: 22 Jan 2002 00:25:06 -0000 gputils-0.10.0, Craig Franklin
Next by date: 22 Jan 2002 00:25:06 -0000 Re: gpasm macro object code listing?, Craig Franklin
Previous in thread:
Next in thread: 22 Jan 2002 00:25:06 -0000 Re: gpasm macro object code listing?, Craig Franklin


Powered by ezmlm-browse 0.20.