Date: Sun, 1 Dec 1996 09:40:15 +0200 (IST) From: Eli Zaretskii To: Roger Carbol Cc: djgpp AT delorie DOT com Subject: Re: movedata() problems... In-Reply-To: <57nnjo$fdt@nr1.calgary.istar.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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?