home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
17A
/
DRWIN101.ZIP
/
FUN.FUN
< prev
next >
Wrap
Text File
|
1991-05-08
|
2KB
|
35 lines
/****************************************************************************/
/* memcpyiXX */
/****************************************************************************/
/*-----------------------------Description----------------------------------*/
/* This set of functions does a copy -- but it doesn't use REP MOVSx to */
/* do it, since a REP can't be INTerrupted. */
/*-----------------------------Arguments------------------------------------*/
/*-----------------------------Return value---------------------------------*/
/*-----------------------------Global constants-----------------------------*/
/*-------------------Mod-------Global variables-----------------------------*/
/*-----------------------------Functions called-----------------------------*/
/*-----------------------------Examples-------------------------------------*/
/*-----------------------------Constraints/Gotchas--------------------------*/
/*--Date--------Programmer----------Comments--------------------------------*/
/* 1990.01.01 A. Turing initial code */
/****************************************************************************/
void memcpyi(BYTE* dp,BYTE* sp,WORD n)
{
while (n--) *dp++=*sp++;
} //memcpyi
void memcpyifn(BYTE far* dp,BYTE* sp,WORD n)
{
while (n--) *dp++=*sp++;
} //memcpyifn
void memcpyinf(BYTE* dp,BYTE far* sp,WORD n)
{
while (n--) *dp++=*sp++;
} //memcpyinf