Mail Archives: djgpp/1998/12/27/07:53:15
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 -