delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/25/12:29:25

From: V01D <V01D_ AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Ptr to video memory when in pmode and using a Linear Frame Buffer
Date: Thu, 25 Feb 1999 08:47:53 -0800
Organization: Polytec
Lines: 22
Message-ID: <36D57EB9.218D6A5E@yahoo.com>
NNTP-Posting-Host: 208.166.41.118
Mime-Version: 1.0
X-Trace: 919961323 BAF4VYGAI2976D0A6C usenet87.supernews.com
X-Complaints-To: newsabuse AT remarQ DOT com
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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(); ...
if you have any ideas i would love to hear em :)

  -V01D

- Raw text -


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