P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
And<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  And<t>
 
  /* Bitwise logical 'and' top two items on stack */
 
  Possible Instructions
 
  AndW, AndL
 
  See: P-Code Data Types
 
  Description
 
  Pops two elements from the stack, performs a logical and on them, and
  pushes the result back onto the stack.
 
  Pseudocode equivalent:
 
  <t>2 = Pop<t>();
  <t>1 = Pop<t>();
  Push<t>(<t>1 & <t>2);
 
  This is generated by
 
  wTest1 = 23;
  wTest2 = 14;
  if ((wTest1 & wTest2) != 6) /* generate AndW */
 
 
                                     -♦-