From: "François Poirier" Newsgroups: comp.os.msdos.djgpp Subject: Selector and linear frame buffer Date: Thu, 31 Dec 1998 14:10:41 -0500 Organization: AEI Internet Lines: 18 Message-ID: <368BCC31.BBD0F6C1@aei.ca> NNTP-Posting-Host: ppp-110-79.mtl.aei.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com tried to make a selector like this: and it dosen't work? And how do I access it am I correct? void make_selector(void) { //video_selector is a global short video_selector = __dpmi_allocate_ldt_descriptors(1); __dpmi_set_segment_base_address(video_selector, linear_address); __dpmi_set_segment_limit(video_selector, 2000000L); /* 2 Megs */ } For accessing it: _farpokeb(video_selector, (int)rand()%639 * Max_X + (int)rand()%479, (char)rand()%255); An answer would be apprecieated.