P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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 */
 
 
                                     -♦-