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.
CvtWQ<n>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  CvtWQ<n>
 
  /* Convert word to signed bit field. */
 
  Possible Instructions
 
  CvtWQb
 
  Description
 
  Used to extract a signed bit field from the top word of the stack. The
  top word is popped, shifted, and masked. The bit field is then
  sign-extended to a word value and pushed back onto the stack.
 
  The one-byte parameter <n> specifies the shift count (0-15) and the
  width (minus 1) of the bit field (0-15).
 
  See: CvtWuQb
 
 
                                     -♦-