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