home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / ASM / ALIB30B / COMPAR6.ASM < prev    next >
Assembly Source File  |  1994-10-27  |  940b  |  36 lines

  1.     page    66,132
  2. ;******************************* COMPAR6.ASM ********************************
  3.  
  4. LIBSEG           segment byte public "LIB"
  5.         assume cs:LIBSEG , ds:nothing
  6.  
  7. ;----------------------------------------------------------------------------
  8. .xlist
  9.     include  mac.inc
  10.     include  common.inc
  11.     extrn    compare_strings:near
  12. .list
  13. comment 
  14. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -( COMPARE )
  15. ;COMPARE6 - compare asciiz strings, either case, registers unchanged
  16. ;
  17. ; inputs:   DS:[SI] = address of string1
  18. ;           ES:[DI] = address of string2
  19. ; output:   if compare ok,  flag "je" set
  20. ;           if compare bad, flag "jne" set
  21. ;* * * * * * * * * * * * * *
  22. 
  23.     PUBLIC    COMPARE6
  24. COMPARE6    PROC    FAR
  25.     apush    ax,cx,si,di
  26.     mov    cx,-1
  27.     call    compare_strings
  28.     apop    di,si,cx,ax
  29.     retf
  30. COMPARE6    ENDP
  31. ;------------------------------------------------------------------------
  32.  
  33. LIBSEG    ENDS
  34.     end
  35.