flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Macroinstructions > MACRO's name which becomes the result | 
  
| Author | 
  | 
              
| 
                  
                   revolution 30 Dec 2006, 00:19 
                  Short answer: No
 
                  
                Long Answer: Yes, but you (or someone else) will have to modify/reprogram fasm, else without modification/reprogramming, No Inline macros have been discussed before. Perhaps someone knows where the old topics are and can post a link?  | 
              |||
                  
  | 
              
| 
                  
                   Tomasz Grysztar 30 Dec 2006, 00:39 
                  The very recent topic (just two rows below in this forum) contains a link to one of those old ones: http://board.flatassembler.net/topic.php?t=6437 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   AsmER 30 Dec 2006, 12:40 
                  OK, then I'll try to find some other way. Probably something like this will do:
 
                  
                Code: macro SQUARE rn*, v* { MRV#rn = v*v } ... ; and then SQUARE 1, 10 mov eax, MRV1 Anyway thanks for the answer.  | 
              |||
                  
  | 
              
| 
                  
                   jbojarczuk 14 Jan 2007, 21:02 
                  Well, you could use a C preprocessor...
 
                  
                If you have a C compiler, check if it has any options on preprocessing only. If it does, you could use it to generate a file, and then send this file to fasm. It is kind of a long shot, but if you automate you compilation, it might give you the flexibility you are looking for...  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.