flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > request: Please describe fields of [macro_status] variable

Author
Thread Post new topic Reply to topic
Daemon



Joined: 08 Jul 2003
Posts: 15
Daemon 03 Jun 2004, 06:48
request to Privalov: please describe fields of [macro_status] variable and what happens with it when macro block found.

Greetz,
    Daemon.
Post 03 Jun 2004, 06:48
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 04 Jun 2004, 13:31
The lower nibble (bits 0-3) contains the info related to the macroinstruction that is currently being declared, while the higher nibble (bits 4-7) contain the status of processing the macro.

The values of lower nibble can be:

  • 0 - no macro is being declared currently, default value;
  • 1 - the declaration of macro has started, but no { - macro contents opening character has been found yet;
  • 2 - the contents of macro declaration is being preprocessed;


The higher nibble consist of flags, currently only two are defined:

  • bit 4 (value 10h) - some macro is currently processed;
  • bit 5 (value 20h) - internal flag of macro preprocessor, used to determine whether we are in the place where some macro directive might be used


Note that both higher and lower nibble can have non-zero value at the same time, since macro can define some other macro.
Post 04 Jun 2004, 13:31
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.