qa.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.
DAS
   Summary  Detail  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
Decimal Adjust after Subtraction                 Flags:  O D I T S Z A P C
                                                         ═════════════════
Syntax:  DAS                                             ?       ± ± ± ± ±
 
  Adjusts the result of a subtraction to a packed BCD number (less than
  100 decimal). The previous subtraction instruction should place its
  8-bit binary result in AL. DAS converts this binary sum to packed BCD
  format with the least significant decimal digit in the lower four bits
  and the most significant digit in the upper four bits. If the sum is
  greater than 99h after adjustment, then the carry and auxiliary carry
  flags are set. Otherwise, carry and auxiliary carry flags are cleared.
                                    -♦-