From: Fabrice ILPONSE Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointer to 0xA000 Date: Wed, 10 Dec 1997 11:16:37 +0100 Organization: Universites Paris VI/Paris VII - France Lines: 30 Message-ID: <348E6C05.F34@trash.lip6.fr> References: <01bd0337$01ac5e00$390760c3 AT benjamir> <348DCFDB DOT 6BED2450 AT mailto DOT de> NNTP-Posting-Host: asim.lip6.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk krizz wrote: > > > short video=__dpmi_segment_to_descriptor(0xa000); > unsigned char buffer=malloc(0xffff); > _movedatal(_my_ds(), (unsigned int)buffer, video, 0, 0x3fff); This is blitting and it's perhaps not the original poster wanna do! > > krizz > > Olmeca wrote: > > > I wanna have a pointer to the address 0xA000, but in Djgpp it's a problem. > > e.g.: unsigned char *vga=0xA000 (this doesn't work, cause of protected > > mode) I know it exists _djgpp_convential_base_adress() or something like that. You can do char *videomem=_djgpp_convential_base_adress()+0x0a0000 and use it as a normal pointer. I saw an example in the Mikmod 2.xx code. -- ^ ^ ^ | | | +-+-+ Fabrice ILPONSE | | | -