www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/24/09:16:10

From: broeker AT acp3bf DOT knirsch DOT de (Hans-Bernhard Broeker)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Again: I need help (inline assembly)
Date: 24 Aug 1999 14:12:02 +0200
Organization: RWTH Aachen, III. physikalisches Institut B
Lines: 17
Message-ID: <7pu26i$s9a@acp3bf.knirsch.de>
References: <37c1e222 DOT 1224982 AT news DOT telepac DOT pt>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 935496725 15445 137.226.32.75 (24 Aug 1999 12:12:05 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 24 Aug 1999 12:12:05 GMT
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

aperes (ajps AT mail DOT telepac DOT pt) wrote:

> How can i copy source to target using inline assembly and DJGPP?

Wrong question. Why insist on inline assembly, in the first place?

     memcpy(target, source, 10*sizeof(int));

That's as much 'inline assembly' as you'll ever need, for such a
simple task.

[Or did you really believe you could outwit the gcc compiler writers
on such a simple task?]

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019