flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > about using < and > in macros |
Author |
|
l_inc 10 Mar 2012, 16:59
Blank
In the first example both inequality signs are also joined together while the match-macroblock is expanded: the first token from the args is assigned to the token name and the rest, including the greater-than sign, is assigned to params. Therefore after the match-macroblock expansion the second argument of the macro define@proc always starts with the less-than sign and ends with the greater-than sign. P.S. A common suggestion for macro expansion tracing is to use the prepsrc tool from the fasm package (the tool can be compiled from the tools/win32 subdirectory). I prefer to use the automated way for engaging of such tools (including the fasm compiler itself) by using the following nppexec plugin script for notepad++: Code: NPP_SAVE ENV_SET Include = [path to fasm dir]\Include;[path to a dir with my custom includes]\MyMacros cd $(CURRENT_DIRECTORY) [path to fasm dir]\fasm.exe -m 1572864 -s "$(CURRENT_DIRECTORY)\$(NAME_PART).fas" "$(FULL_CURRENT_PATH)" [path to fasm dir]\prepsrc.exe "$(CURRENT_DIRECTORY)\$(NAME_PART).fas" "$(CURRENT_DIRECTORY)\$(NAME_PART)_p.txt" NPP_OPEN "$(CURRENT_DIRECTORY)\$(NAME_PART)_p.txt" NPP_SENDMSG WM_COMMAND IDM_LANG_ASM |
|||
10 Mar 2012, 16:59 |
|
Blank 10 Mar 2012, 18:58
l_inc,
Of course! How am I couldn't guessed! It's coooool !!!! P.S: Thanks a lot for a prepsrc and plugin script - it would be useful! P2.S: It seems 'prepsrc' works like 'fasmpre', but directly with source, rather than symbol dump. |
|||
10 Mar 2012, 18:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.