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.
Not<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Not<t>
 
  /* Bitwise logical 'not' on top word of stack or negate word  */
  /* (ones's complement)                                        */
 
  Possible Instructions
 
  NotW, NotL
 
  See: P-Code Data Types
 
  Description
 
  Pops the top word off the stack, does a one's complement negation of the
  bits in the word, and pushes the resulting word back onto the stack.
 
  Pseudocode equivalent:
 
  w = popW();
  pushW(~w);
 
  The instruction can be generated as follows:
 
  w1 = ~w2;           /* generates NotW */
 
 
                                     -♦-