🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #148

Re: reading directly from screen

#148
From: Joseph D. Shapiro
Date: Fri, 23 Mar 1990 16:54
19 lines
988 bytes
In article <3850@plains.UUCP> person@plains.UUCP (Brett G. Person) writes:
>How do I make Microsoft C read directly from video memory.  I need to 
>access the memory starting from b800.
>
>What does the c code that allows me to do this look like?

I do it all the time:

	typedef far char farchar;
	farchar *p;
	char c;

	p = (farchar *)(0xb8000000L);
	c = *p;
-- 
__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__
Joe Shapiro					"My other car is a turbo...
ISC-Bunker Ramo     				 ...too."
{decvax,yale,philabs,oliveb}!bunker!shap
Technical Details
Message-ID: <10791@bunker.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!yale!bunker!shap
References: <3850@plains.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!yale!bunker!shap
From: shap@bunker.UUCP (Joseph D. Shapiro)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: reading directly from screen
Message-ID: <10791@bunker.UUCP>
Date: 23 Mar 90 16:54:58 GMT
References: <3850@plains.UUCP>
Reply-To: shap@clunker.UUCP (Joseph D. Shapiro)
Organization: ISC-Bunker Ramo, an Olivetti Company, Shelton, Ct
Lines: 19