flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Macroinstructions > how know if chA eqtype eax+value ? | 
  
| Author | 
  | 
              
| 
                  
                   Roman 31 Jul 2020, 13:32 
                  I use: 
 
                  
                Code: macro a chR { if chR eqtype eax mov [chR],2 end if } a ebx Its work. But this not work. No asm code get. Empty. Code: a ebx+4 a edx+esi  | 
              |||
                  
  | 
              
| 
                  
                   revolution 31 Jul 2020, 13:35 
                  Extend the if clause.     
                  
                Code: macro a chR { if chR eqtype eax | chR eqtype eax+eax | chR eqtype eax+0 mov dword[chR],2 end if } a ebx a eax+ebx a eax+4  | 
              |||
                  
  | 
              
| 
                  
                   Roman 31 Jul 2020, 13:58 
                  Thanks 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   revolution 01 Aug 2020, 02:26 
                  Check your precedence of & over |
 
                  
                Are you sure that [] is a type? Perhaps you want [eax] or [eax+ebx] or similar? Test each part separately to ensure you get what you really want.  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.