delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/21/17:01:30

From: Dave Nugent <dave DOT nugent AT ns DOT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: How to use _movedatal
Date: Sun, 21 Dec 1997 06:59:35 -0800
Organization: Bell Solutions
Lines: 24
Message-ID: <349D2ED7.D04@ns.sympatico.ca>
Reply-To: dave DOT nugent AT ns DOT sympatico DOT ca
NNTP-Posting-Host: 142.177.33.18
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi, I'm a newbie at DJGPP, and am trying to figure out how to use
_movedatal
to move 32 bits at a time from one array to another.

The syntax I have shows _movedata(unsigned, unsigned, unsigned,
unsigned, size_t)

unsigned, unsigned, unsigned, unsigned WHAT?????  I kinda thought like
unsigned src seg, unsigned src offset, unsigned dest seg, unsigned dest
offset, but
isn't DJGPP supposd to work without these segment headaches?

I would appreciate an example on how to use this.  I have a large array
set up as follows:

long unsigned storage[1000000];
long unsigned current[20000];

I want to be able to copy 20000 bytes from storage to current..  The
program will
determine where to start copying from in array storage.

Appreciate any help..
thanks!

- Raw text -


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