X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Joel Saunders" Newsgroups: comp.os.msdos.djgpp Subject: Strange Date: Wed, 6 Feb 2002 14:42:20 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Lines: 20 Message-ID: <108a5bf5e6a352375ab024bb5fbb3f51.62691@mygate.mailgate.org> NNTP-Posting-Host: spider-mtc-te044.proxy.aol.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1013006189 18888 64.12.103.169 (Wed Feb 6 15:42:20 2002) X-Complaints-To: abuse AT mailgate DOT org NNTP-Posting-Date: Wed, 6 Feb 2002 14:42:20 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=spider-mtc-te044.proxy.aol.com; posting-account=62691; posting-date=1013006189 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.os.msdos.djgpp/108a5bf5e6a352375ab024bb5fbb3f51.62691%40mygate.mailgate.org To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com These routines work, so long as I don't include a clobber list. Why? #define Mov_Byte(Src, Dest, Mov_Size)\ __asm__ __volatile__(\ "cld\n\t"\ "rep\n\t"\ "movsb"\ : :"S" (Src), "D" (Dest), "c" (Mov_Size))\ void Move_Bytes(void *Src, void *Dest, long Move_Size) { asm ( "cld\n\t" "rep\n\t" "movsb" : :"S" (Src), "D" (Dest), "c" (Move_Size)); } -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG