delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/22/05:24:32

Date: Sun, 22 Jun 1997 12:24:02 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: ERKI SAARTS <erki AT voru DOT pv DOT ee>
cc: djgpp AT delorie DOT com
Subject: Re: passing data to conventional memory
In-Reply-To: <4C615216502@voru.pv.ee>
Message-ID: <Pine.SUN.3.91.970622122332.4249N-100000@is>
MIME-Version: 1.0

On Sat, 21 Jun 1997, ERKI SAARTS wrote:

> movedata((unsigned)_my_ds,(unsigned)&my_send,send_info.pm_selector,
> send_info.pm_offset,sizeof(my_send));   (this line faults)

`_my_ds' is a function, not a variable!  Your code should read like
so:

	movedata((unsigned)_my_ds(),
		 (unsigned)&my_send,
		 send_info.pm_selector,
		 send_info.pm_offset,
		 sizeof(my_send));

When everything else fails, read the documentation (the libc
reference, in this case).  From the DOS prompt:

		info libc alpha _my_ds [Enter]

- Raw text -


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