Date: Sun, 27 Dec 1998 14:52:39 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: ªü­õ cc: djgpp AT delorie DOT com Subject: Re: Bug in DJGPP generated COFF images In-Reply-To: <3SFI2D$Pu_@cszone.cc.ntu.edu.tw> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id HAA09633 Reply-To: djgpp AT delorie DOT com On 27 Dec 1998, ªü­õ wrote: > I use ld with option --oformat coff-go32 to generate COFF images. > > unsigned char* pVideo=(unsigned char*)0x000b8000; > unsigned char j='Z'; > > However, the above codes don't work at all, i.e., the pVideo > does not point to 0x000b8000. This will never work with DJGPP, since the absolute addresses are not mapped by default into the data segment. Please read sections 10.2 and 18.4 of the DJGPP FAQ list, they explain why doesn't this work, and how to write code which will do the same in DJGPP.