Annotation of coherent/b/lib/libc/string/i8086/memcpy.m, revision 1.1

1.1     ! root        1: //////////
        !             2: / i8086 C string library.
        !             3: / memcpy()
        !             4: / ANSI 4.11.2.1.
        !             5: //////////
        !             6: 
        !             7: //////////
        !             8: / char *
        !             9: / memcpy(To, From, Count)
        !            10: / char *To, *From;
        !            11: / int Count;
        !            12: /
        !            13: / Copy Count bytes from From to To.
        !            14: //////////
        !            15: 
        !            16: #include <larges.h>
        !            17: 
        !            18: To     =       LEFTARG
        !            19: From   =       To+DPL
        !            20: Count  =       From+DPL
        !            21: 
        !            22:        Enter(memcpy_)
        !            23:        mov     cx, Count(bp)   / Count to CX
        !            24:        Lds     si, From(bp)    / From address to DS:SI
        !            25:        Les     di, To(bp)      / To address to ES:DI
        !            26:        mov     ax, di          / Result to AX
        !            27: #if    LARGEDATA
        !            28:        mov     dx, es          / or DX:AX
        !            29: #endif
        !            30:        cld
        !            31:        rep
        !            32:        movsb
        !            33:        Leave

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.