home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c010 / 1.ddi / FLILIB3.ZIP / FLISRC3.ZIP / FCONTRAS.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-08-29  |  384 b   |  33 lines

  1.  
  2.     dosseg
  3.     .model    large
  4.     .code
  5.  
  6.     PUBLIC _i86_wcontrast
  7.     ;i86_wcontrast(s1, s2, count)
  8. _i86_wcontrast PROC far
  9.     push bp
  10.     mov bp,sp
  11.     push ds
  12.     push si
  13.     push di
  14.     cld
  15.  
  16.     lds si,[bp+4+2]
  17.     les di,[bp+8+2]
  18.     mov cx,[bp+12+2]
  19.     repne cmpsw
  20.     inc cx
  21.  
  22.     mov ax,[bp+12+2]
  23.     sub ax,cx
  24.  
  25.     pop di
  26.     pop si
  27.     pop ds
  28.     pop    bp
  29.     ret    
  30. _i86_wcontrast ENDP
  31.  
  32. END
  33.