Path: 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 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