delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/27/07:53:15

Date: Sun, 27 Dec 1998 14:52:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: ªü­õ <Philosopher DOT bbs AT cszone DOT cc DOT ntu DOT edu DOT tw>
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: <Pine.SUN.3.91.981227145038.434O-100000@is>
MIME-Version: 1.0
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.

- Raw text -


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