home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1990 / number4 / l6.asm < prev    next >
Assembly Source File  |  1990-08-02  |  414b  |  14 lines

  1.  
  2.  
  3.      CLC            ;clear the carry for the initial addition
  4. LOOP_TOP:
  5.      MOV  AX,[SI]   ;get next source operand word
  6.      ADC  [DI],AX   ;add with carry to dest operand word
  7.      LAHF           ;set aside the Carry flag
  8.      ADD  SI,2      ;point to next source operand word
  9.      ADD  DI,2      ;point to next dest operand word
  10.      SAHF           ;restore the Carry flag
  11.      LOOP LOOP_TOP
  12.  
  13.  
  14.