Mail Archives: djgpp/1998/12/27/04:00:43
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 -