From: flupke Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP! Pointers in asm Date: Wed, 15 Jul 1998 13:01:47 +0200 Organization: Grolier Interactive Europe Lines: 15 Message-ID: <35AC8C1B.DD83B3FA@club-internet.fr> References: <35AB4D7A DOT 4704 AT efd DOT lth DOT se> NNTP-Posting-Host: toulon5-92.club-internet.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 15 Jul 1998 13:51:33 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter Danielsson wrote: > When I'm passaing a pointer to my asm-function gcc puts it in 'edx'. (I > made it generate asm-source). I want to get the segment and put it in > 'es' and the offset in 'ax', so I can use 'rep stosw'. Can anyone help > me. The information ought to be in 'edx'. If some one has an memset- or > memmove-function. I could just modify to get my function to work. DJGPP is full 32 bits, so put your destination address in EDI and the source in AX. Remember to put number of words to store in ECX too.