flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Compiler Internals > Strangeness with xor operator in constants expression | 
  
| Author | 
  | 
              
| 
                  
                   revolution 04 Feb 2018, 13:03 
                  Unary minus has a lower precedence than xor. You can put brackets around the leading minus to force what you need.     
                  Code: mov eax,(-1) xor ZZZ Last edited by revolution on 04 Feb 2018, 13:48; edited 1 time in total  | 
              |||
                  
  | 
              
| 
                  
                   bazizmix 04 Feb 2018, 13:27 
                  Thanks, revolution! 
                  
                 | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.