Article View: comp.os.msdos.programmer
Article #1911Re: Finding the MCGA in Quick C 2.01
From: Mike Fisher
Date: Fri, 17 Aug 1990 13:12
Date: Fri, 17 Aug 1990 13:12
27 lines
1281 bytes
1281 bytes
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 |
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<MLF.90Aug17091247@manatee.cis.ufl.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!bikini!mlfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MLF.90Aug17091247@manatee.cis.ufl.edu> Date: 17 Aug 90 13:12:47 GMT Sender: news@uflorida.cis.ufl.EDU Organization: /cis/bikini0/mlf/.organization Lines: 27