X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 13 May 2002 08:07:23 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Rafal 'Raf256' Maj" cc: djgpp AT delorie DOT com Subject: Re: 0xB800:0000 = ... ; In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 12 May 2002, Rafal 'Raf256' Maj wrote: > what is the fastest way in DJGPP to access conventional memory (video ram) It depends on your video and other hardware, not only on the programmatic technique. In general, I recommend farptr functions, see sections 10.2 and 18.4 of the DJGPP FAQ for details. > how can I write it, like : > (unsigned char*)(0xB800:x) = a; > > and read it > a = (unsigned char*)(0xB800:x); Use nearptr method; see section 18.6 of the FAQ for more.