Mail Archives: djgpp/1998/06/16/22:04:33
Read the DJGPP FAQ (faq210b.zip) section 10 about graphics
programming. Also consult the DJGPP User's Guide on
http://www.delorie.com/djgpp/doc/ug/ - namely the sections "DJGPP
Basics" and "Graphics" and also the "Porting 16-bit programs to DJGPP"
-article in the "Compiling" -section.
- aYk -
>
>Hello,
>
>I would like to create a pointer to my VGA cards memory. I know this
>starts at 0xA000,0000
>
>in another compiler I would use:
>
>char far *screen= (char far *) MK_FP(0xa000,0);
>
>problems arise:
>1. djgpp does not support the "far" keyword
>2. the implementation of "dos.h" that comes with djgpp does not contain
>MK_FP()
>
>if I try this:
>
>char * screen = (char *) 0xa0000000;
>
>it compiles fine, then crashes at the point I try and set anything through
>this pointer.
>
>Any suggestions?
>
- Raw text -