Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!bikini!mlf From: mlf@manatee.cis.ufl.edu (Mike Fisher) Newsgroups: comp.os.msdos.programmer Subject: Re: Finding the MCGA in Quick C 2.01 Message-ID: Date: 17 Aug 90 13:12:47 GMT Sender: news@uflorida.cis.ufl.EDU Organization: /cis/bikini0/mlf/.organization Lines: 27 In article <9042@uhccux.uhcc.Hawaii.Edu> 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 use Quick C, but I can tell you what works for me in Turbo C. PutPixel (int x, int y, unsigned char c) { unsigned char huge *w; /* huge seems to work better here */ w = (unsigned char huge *)(0xA0000000L + (long)y * 320L + (long)x); *w = c; } Good luck... -- ------------------------------------------------------------------------------- | Real life: There is no such thing... Mike Fisher | | | | University of Florida CIS Dept. mlf@cis.ufl.edu | -------------------------------------------------------------------------------