delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/23/03:19:08

Date: Mon, 23 Jan 1995 8:43:40 UTC+0200
From: Francesc Guasch-Ortiz <frankie AT si DOT upc DOT es>
To: <djgpp AT sun DOT soe DOT clarkson DOT edu> (return)
Subject: Re: Graphics Address

> > I'd like to access directly to the video memory. I'm using the 13h mode.
> > I know the address=0xa0000000, but this is no available under dpmi (i guess).
> > The PrimaryScreen only points me to the text screen.
> > 
>  
> I think the address should actually be 0x000a0000 if you are referring to what
> is normally under a segmented system SEG 0xa0000 and OFFSET 0x0000 as a real
> address is equal to (SEG * 0x10) + OFFSET. using DJGPP you can add the real
> address with  0xe0000000 to access it i.e. 0xe00a0000 for VGA video memory.

That's one of the things I tried getting nice computer crashes , 8)
I think I'm going to try the <farptr.h> option. Thank you anyway.

	frankie



- Raw text -


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