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.
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 */
 
 
                                     -♦-