Mail Archives: djgpp/1996/11/07/21:56:44
From: | Yamaha / XYZZ <scriven AT CS DOT ColoState DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: MK_FP... HELP!
|
Date: | Thu, 07 Nov 1996 14:55:46 -0700
|
Organization: | XYZZ Software Co.
|
Lines: | 30
|
Message-ID: | <32825AE2.167E@CS.ColoState.edu>
|
References: | <01bbcc67$3a865300$c2835fcc AT servicom>
|
NNTP-Posting-Host: | seurat.vis.colostate.edu
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Armando S. Ramos wrote:
>
> I´m new in djgpp. I use to write to the video adapter
> in MODE X, by writing in the memory segment
> oxa000, and I use the funtion of Borlandc++ MK_FP()
> for this purpose. How I do this if djgpp works
> in protected mode?
I think everything you want to know is in the FAQ. It'll answer this
question, and many others you'll probably want to know.
DJGPP is a 32-bit compiler, so there aren't any far pointers. As far as
I know, far pointers are an oddity rather than a rule. They're usually
only supported on 286 PC compilers.
DJGPP is also a protected-mode compiler, so you'll have to be a little
more clever to access video memory than you would with Borland C.
Above, you referred to the segment 0xA000, but that doesn't really exist
as such in 32bit protected mode. Its flat address is 0x000A0000, and
you'll have to mess with selectors a bit to access it directly.
Anyway, get the FAQ first, and then you might also want to look through
the (rather large) support base for DJGPP. You can find game/graphic
programming links on my web page.
-- Yamaha / XYZZ
mailto:scriven AT CS DOT ColoState DOT edu
mailto:scriven AT VIS DOT ColoState DOT edu
http://www.vis.colostate.edu/~scriven/
- Raw text -