Date: Thu, 9 Jul 1998 19:16:27 +0300 (IDT) From: Eli Zaretskii To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Problem using int 0x10 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.