gnupic: MACRO expanding with gpasm


Previous by date: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin
Next by date: 20 Nov 2001 07:37:39 -0000 gpsim en ReedHat 7.1, Belotti, Diego
Previous in thread: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin
Next in thread: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin

Subject: Re: MACRO expanding with gpasm
From: Frederic ####@####.####
Date: 20 Nov 2001 07:37:39 -0000
Message-Id: <0111200837190T.05384@sunceng>

On Tuesday 20 November 2001 02:15, Craig Franklin wrote:

> Frederic wrote:

> > How do you 'store macro as text' ?

> This is not under the user's control.  Gpasm's sourcecode will be
> modified.  The input file syntax will not change.

Ok !!! Sorry for the mistake...

> > Can you explain how gpasm exactly work when it parses the source code
> > ? What are the differents phases (lexer, etc...) ?
>
> Input files are scanned by the lexer.
> [...]

In my file, I get the error 116 (because of the BIT macro), and gpasm is 
talking about pass 1 and pass 2. If I understand, the first one is the 
lexer pass, and the second is the parser pass. Am I right ? 

> I will try to get this fixed, give me some time.  I am currently knee
> deep in object files, archives, and a linker for gpasm.  The water is
> rising fast...

Well, I think I will expand this macro manually for the moment. It is not 
very hard to do. Take all time you need to make good job.

Thank you very much for the explanations: I like to know how things run... 
Many years ago, I wrote a Z80 assembler under Mac. It was working well, 
but I didn't use all gpasm features (IF, MACRO, ...). It was pretty 
simple. So it is very interesting to understand how *good* assemblers work.

-- 
    Frederic

    http://perso.wanadoo.fr/biloba

Previous by date: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin
Next by date: 20 Nov 2001 07:37:39 -0000 gpsim en ReedHat 7.1, Belotti, Diego
Previous in thread: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin
Next in thread: 20 Nov 2001 07:37:39 -0000 Re: MACRO expanding with gpasm, Craig Franklin


Powered by ezmlm-browse 0.20.