Direct memory addressing in TURBO C/C++

Mark W. Schumann catfood at NCoast.ORG
Sun Mar 17 07:33:09 AEST 1991


berryc at arcturus.uucp (Craig D. Berry (x1710)) writes:
>catfood at NCoast.ORG (Mark W. Schumann) writes:

>>You can do this with--
>>    * (unsigned int *) MK_FP (0x0040, 0x0017);
>>MK_FP() is a macro that is defined in Turbo C (2.0 at least) and
>>Mix Power C.  I think it is defined in MC.  This is NOT considered
>>part of ANSI but it looks as if you are trying to do some very
>>machine-dependent stuff anyway.
>
>Note that for total safety, that should be (unsigned int far *).  This
>would be the default in a large model program compilation, but it never
>hurts to be careful...

I stand corrected.

-- 
============================================================
Mark W. Schumann  3111 Mapledale Avenue, Cleveland 44109 USA
Domain: catfood at ncoast.org
UUCP:   ...!mailrus!usenet.ins.cwru.edu!ncoast!catfood



More information about the Comp.lang.c mailing list