Mail Archives: djgpp/1998/12/19/11:32:10
Message-Id: | <199812191630.QAA01983@remus>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | RE: beginner mode13 question
|
Date: | Sat, 19 Dec 1998 16:29:41 -0000
|
X-Priority: | 3 (Normal)
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0
|
Importance: | Normal
|
In-Reply-To: | <dMOe2.122$14.362@newsr2.u-net.net>
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
> I am having trouble getting mode13 programs to work. Plotting pixels using
> bios interupts works OK. But as soon as I try to directly address
> the video
> memory, I start to get horrible GPFs. I have tried A000, A0000
> and A0000000
> as the address for video memory but no luck. I have read about special
> commands for near pointers or something but they need
> <sys/nearptr.h> and I
> do not have this file in my /include/sys folder, only farptr.h. Also is
> there a memory model setting for gcc that I need to know about.
DJGPP is a 32-bit protected mode environment. You only have, and only need,
one memory model.
There are tutorials on the VGA under DJGPP on http://www/delorie.com/djgpp/
in the User Guide section, and on http://www.rt66.com/~brennan/djgpp/
It basically boils down to the fact that you can't use nearpointers.
James Arthur - jaa AT arfa DOT clara DOT net
http://www.jado.org/users/arfa/
ICQ#15054819
- Raw text -