strcpy.S 407 B

123456789101112131415161718192021222324
  1. /*
  2. * arch/alpha/lib/strcpy.S
  3. * Contributed by Richard Henderson (rth@tamu.edu)
  4. *
  5. * Copy a null-terminated string from SRC to DST. Return a pointer
  6. * to the null-terminator in the source.
  7. */
  8. .text
  9. .align 3
  10. .globl strcpy
  11. .ent strcpy
  12. strcpy:
  13. .frame $30, 0, $26
  14. .prologue 0
  15. mov $16, $0 # set up return value
  16. mov $26, $23 # set up return address
  17. unop
  18. br __stxcpy # do the copy
  19. .end strcpy