delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/09/18:16:31

Date: Thu, 9 Jul 1998 19:16:27 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Endlisnis <s257m AT unb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Problem using int 0x10
In-Reply-To: <Pine.SOL.3.96.980708172800.5350A-100000@sol.sun.csd.unb.ca>
Message-ID: <Pine.SUN.3.91.980709191457.15312B-100000@is>
MIME-Version: 1.0

On Wed, 8 Jul 1998, Endlisnis wrote:

> 	But, I am using "__tb" which is a transfer buffer set up in the
> 1st 1M of memory.  Then I am passing the address of this buffer, which is
> then copied into my structure.  I have debugged this program and the
> transfer buffer (which is in the first 1M, I confermed it at address
> 0x5fca:0000), the contents do not change at all.  I give it a valid 20-bit
> address, but it still doesn't write to it.

The problem is not with the use of the transfer buffer.  It's because you 
use memcpy.  memcpy cannot be used to move data to and from the transfer 
buffer.  Use dosmemget/dosmemput and the _farpeekX/_farpokeX functions.  
The FAQ has the details.

- Raw text -


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