www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/27/04:00:43

From: Philosopher DOT bbs AT cszone DOT cc DOT ntu DOT edu DOT tw (ªü­õ)
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in DJGPP generated COFF images
Date: 27 Dec 1998 08:40:12 GMT
Organization: µ{¦¡³]­p¼Ö¶é(CSZone)
Lines: 25
Message-ID: <3SFI2D$Pu_@cszone.cc.ntu.edu.tw>
NNTP-Posting-Host: cszone.cc.ntu.edu.tw
X-Filename: n.djgpp/M.914748013.A
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

        gcc: 2.8.1

        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.

        If modify the above codes to the following:

        unsigned char* pVideo;
        unsigned char j;

        pVideo=(unsigned char*)0x000b8000;
        j='A';

        Now, pVideo does point to 0x000b8000.

        Is there anything wrong with COFF images generated by ld?

--
¡° Origin: µ{¦¡³]­p¼Ö¶é ¡» From: titan.ee.ntu.edu.tw

- Raw text -


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