Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!killer!pollux!dalsqnt!rpp386!pigs!haugj
From: haugj@pigs.UUCP (Joe Bob Willie)
Newsgroups: comp.sys.ibm.pc
Subject: Re: How do I point to the frame buffer?
Summary: wrong address.
Keywords: C, far pointers, frame buffer,ibm pc
Message-ID: <222@pigs.UUCP>
Date: 29 Jun 88 21:03:48 GMT
References: <2784@juniper.UUCP>
Organization: Big "D" Oil and Gas
Lines: 26

In article <2784@juniper.UUCP>, dan@juniper.UUCP (Dan Galewsky) writes:
> Could someone please tell me how to set up a  pointer to the frame buffer
> on my PC's CGA from Microsoft C? I know that the frame buffer starts at 
> 0xb800. So I tried the following :
> 
> far char *Screen;
> Screen = (char *)0Xb800;
>-- 
> 			Puzzled...

Dear Puzzled,

Your C program hates you because you used the wrong address.  Now, I'm
not a big PC jockey, but perhaps you should have used

far	char	*Screen = 0xb8000;

as the video memory address.

Sincerly,
Joe Bob Willie Landers
-- 
 The Beach Bum                                 Big "D" Home for Wayward Hackers
 UUCP: ...!killer!rpp386!jfh                          jfh@rpp386.uucp :SMAILERS

 "You are in a twisty little maze of UUCP connections, all alike" -- fortune