flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Compiler Internals > previous instruction label | 
  
| Author | 
  | 
              
| 
                  
                   Tommy 29 May 2004, 18:54 
                  Seems to be a good idea if it's possible...  
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   comrade 29 May 2004, 19:05 
                  Maybe there could other uses for it, but I cannot think of any. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   Tommy 29 May 2004, 19:37 
                  A solution:
 
                  
                Code: macro showsize asm_code { local x x = $ asm_code display $ - x + 30h, 13, 10 } use32 showsize <movzx eax, al>  | 
              |||
                  
  | 
              
| 
                  
                   comrade 29 May 2004, 21:37 
                  That works, but not as elegant as it would be with $B. Encapsulating instruction into showsize <> is extra work I was hoping to avoid. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   Tomasz Grysztar 30 May 2004, 01:30 
                  Well, to avoid <> characters you can do it this way:
 
                  
                Code: macro showsize [asm_code] { common local x x = $ asm_code display $ - x + 30h, 13, 10 } showsize movzx eax, al And I'm sorry, there seems to be no simple way to add such feature as $B you suggested.  | 
              |||
                  
  | 
              
| 
                  
                   comrade 30 May 2004, 03:51 
                  that's good enough, thanks  
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   Tommy 30 May 2004, 09:59 
                   | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.