/ strcpy.s (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes

        .globl _strcpy

/ char *strcpy (char *string1, const char *string2)
/     {
/     char *dst;
/ 
/     dst = string1;
/     while ((*dst = *string2) != 0)
/         ++dst, ++string2;
/     return (string1);
/     }

/ assumes ds=es!

        .text

        .align  2, 0x90

_strcpy:
        pushl   %esi
        pushl   %edi
        movl    3*4(%esp), %edi         / string1
        movl    4*4(%esp), %esi         / string2
        .align  2, 0x90
1:      lodsb
        stosb
        orb     %al, %al
        jnz     1b
        movl    3*4(%esp), %eax         / string1
        popl    %edi
        popl    %esi
        ret
