Sender: nate AT cartsys DOT com Message-ID: <36D5CE60.8E8F8550@cartsys.com> Date: Thu, 25 Feb 1999 14:27:44 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Ptr to video memory when in pmode and using a Linear Frame Buffer References: <36D57EB9 DOT 218D6A5E AT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com V01D wrote: > > I got super frusterated with this ... i heres my simple line that works > for everyone else but not me ... > > unsigned char* vidmem; > > vidmem=(unsigned char*) (vbeinfo.physbaseptr+__djgpp_conventional_base); > > vbeinfo is a structure with all the vbe info .. previously retrived, i > am sure of the correct data because i can do a get info command and > retrive all the right values from it .. > > whenever i try doing vidmem[x+y*xlen] = color; it crashes on me error > code 255 .. > im not sure what im doing wrong anymore .. iv looked at other code that > iv written eirlier, and i cant see any differences :( iv looked at other > peoples code, and still no differences ... i am loading > __djgpp_nearptr_enable(); and ending with __djgpp_nearptr_disable(); ... You do check that this function succeeds, right? -- Nate Eldredge nate AT cartsys DOT com