www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/01/02:59:37

Date: Sun, 1 Dec 1996 09:40:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roger Carbol <rog AT col DOT ca>
Cc: djgpp AT delorie DOT com
Subject: Re: movedata() problems...
In-Reply-To: <57nnjo$fdt@nr1.calgary.istar.net>
Message-Id: <Pine.SUN.3.91.961201093423.12293P-100000@is>
Mime-Version: 1.0

On 29 Nov 1996, Roger Carbol wrote:

> movedata ((int)_my_ds, (int)image->buffer, 0xA000, 0000 , 32);

You got your arguments wrong.  Please check out the docs for `movedata':
you should have said this: 

   movedata (_my_ds(), image->buffer, _dos_ds, 0xa0000, 32);

Note that you must say "0xA0000", not "0xA000", since that should be a 
linear address, not a segment address.

> On a related note:  is there any easy way to get the address of
> image->buffer for use with _farpeekb() for example?

Why would you need to use `_farpeekb' on a buffer that is already in your
address space? 

- Raw text -


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