Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!readdm From: readdm@walt.cc.utexas.edu (David M. Read) Newsgroups: comp.os.msdos.programmer Subject: Re: Finding the MCGA in Quick C 2.01 Message-ID: <36267@ut-emx.UUCP> Date: 17 Aug 90 11:46:37 GMT References: <9042@uhccux.uhcc.Hawaii.Edu> Sender: news@ut-emx.UUCP Reply-To: readdm@walt.cc.utexas.edu (David M. Read) Organization: UT-Austin / Jerry's Kids Lines: 23 In article <> julian@uhccux.uhcc.Hawaii.Edu (Julian Cowley) writes: > >So my question boils down to this: what is the cleanest way of >accessing an absolute address such as 0xa0000 in Quick C? > I don't know about QuickC for sure, but I have done the following successfully in full-blown Microsoft C (5.1): unsigned char far *mem; mem = 0xA000:0000; *(mem + offset) = val; where offset & val are self-explanatory. I did this in order to do some direct screen writes to CGA ram, and everything worked just fine, in all four memory models. Good luck with it... -- Dave Read | read@lampf.lanl.gov UT-Austin Nuclear Physics | readdm@walt.cc.utexas.edu