🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42882

djgpp / about video ram

#42882
From: than
Date: Thu, 02 Nov 1995 00:00
23 lines
1167 bytes
hello there,

i recently got a gcc 2.6.3 (actually the djgppXXX.zip, etc) and
was trying to move my work (currently working on microsoft 
compiler cl ver 8.0) in 386 dos extender mode supported by gcc.
i have a problem accessing the video ram of my system.

1) it was supposed to be in 0xA0000000; but 

//this code should print 'A' in the upper left corner
void main(){
char * p = (char *)0xA0000000;
*p = 65;
}

//instead this code will give a protection fault.
ok where is the video ram

2) i'm using a Cirrus Logic 5426 VLB adapter and get a 
protection fault when i'm trying to draw a line.
i've tested both <graphis.h> and <grx.h>

any help is apreciated. thanx!
Technical Details
Message-ID: <47amid$i8@aglaia.forthnet.gr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8c1fd286b425c692,start
X-Google-Attributes: gid11318c,public
From: than@alphanet.gr
Subject: djgpp / about video ram
Date: 1995/11/02
Message-ID: <47amid$i8@aglaia.forthnet.gr>
X-Deja-AN: 118485199
content-type: text/plain; charset=us-ascii
organization: Foundation for Research and Technology Hellas, FORTHnet
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.2N (Windows; I; 32bit)