delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/12/02:05:10

Date: Wed, 12 Jul 1995 08:10:21 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: ukwr AT mcl DOT ucsb DOT edu
Subject: Re: Writing to physical memory
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>	Is it faster to use dosmemput() or movedata() ?

Usually, movedata() is faster if you have more than a dozen of
bytes to move *and* if the destination supports 32-bit accesses
(some peripheral cards don't, so you essentially get 16-bit or
even 8-bit moves).

>	additionally the selectors used in in movedata(), are they a constant?
>	ie can I calcualte what the selectors are and never recalculate thme?

In v1.x, they are, AFAIK.

>	or is there a faster way than movedata() or dosmemput() ?

There is a discussion of available methods in the DJGPP FAQ list, section 18.4.
The latest version of the FAQ is available as faq102.zip from the same place
you get DJGPP.  Or point your Web browser to this URL:

	http://www.delorie.com/djgpp/faq/lowlevel/memtrans.html

- Raw text -


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