flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Macroinstructions > problem with rept inside macro | 
  
| Author | 
  | 
              
| 
                  
                   LocoDelAssembly 05 Feb 2007, 17:59 
                  Code: macro makeBuffers number, size { rept number n \{buffer\#n rb size\} } Or Code: macro makeBuffers baseName, number, size { rept number n \{baseName\#n rb size\} } So you can choose diferents names PS: Your problem was that you forgot to escape the #  | 
              |||
                  
  | 
              
| 
                  
                   daluca 05 Feb 2007, 18:52 
                  Thank you LocoDelAssembly  
 
                  
                but I didn`t forgot is more like i didn't knew do i have to scape every single symbol tha i use inside a macro tha is inside another macro? i don't understand this escaping mechanism very well. thanks again.  | 
              |||
                  
  | 
              
| 
                  
                   LocoDelAssembly 05 Feb 2007, 19:06 
                  http://flatassembler.net/docs.php?article=ufasm
 
                  
                Read the "Macroinstructions" part which has a great demostration about escaping.  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.