home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / asm_kit / compare.asm < prev    next >
Assembly Source File  |  1985-06-21  |  512b  |  17 lines

  1. ;ROUTINE TO COMPARE TWO    STRINGS                        00000100
  2. ;                                    00000200
  3. compare          proc    far                        00000300
  4. ;                                    00000400
  5.           push    si      ;SAVE    REGISTERS            00000500
  6.           push    di                        00000600
  7.           push    cx                        00000700
  8. ;                                    00000800
  9.           repz    cmpsb      ;ONE COMPARE DOES IT            00000900
  10. ;                                    00001000
  11.           pop    cx      ;RESTORE REGISTERS            00001100
  12.           pop    di                        00001200
  13.           pop    si                        00001300
  14.           ret                            00001400
  15. ;                                    00001500
  16. compare          endp                            00001600
  17.