P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Or<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Or<t>
 
  /* Bitwise logical 'or' top two words on stack */
 
  Possible Instructions
 
  OrW, OrL
 
  See: P-Code Data Types
 
  Description
 
  Pops two elements from the stack, performs a logical 'or' on them, and
  pushes the result onto the stack.
 
  Pseudocode equivalent:
 
  <t>2 = Pop<t>();
  <t>1 = Pop<t>();
  Push<t>(<t>1 | <t>2);
 
  This is generated as follows:
 
  wTest1 = 32;
  wTest2 = 256;
  if ((wTest1 | wTest2) != 288) /* generate OrW */
 
 
                                     -♦-