P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Xor<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Xor<t>
 
  /* Bitwise logical 'xor' top two words on stack */
 
  Possible Instructions
 
  XorW, XorL
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Pops two elements from the stack and performs a logical exclusive 'or'
  on them. It then pushes the result back onto the stack.
 
  Pseudocode equivalent:
 
  w2 = Pop();
  w1 = Pop();
  Push(w1 ^ w2);
 
  This can be generated by the following:
 
  if ((w1 ^ w2) != 25)     /* generates XorW */
 
 
                                     -♦-