Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!yetti!geac!orcisi!michael From: michael@orcisi.UUCP Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Looking for C functions to access PC memory Message-ID: <951@orcisi.UUCP> Date: Wed, 11-Nov-87 08:50:24 EST Article-I.D.: orcisi.951 Posted: Wed Nov 11 08:50:24 1987 Date-Received: Fri, 13-Nov-87 06:33:36 EST References: <24261F3U@PSUVMB> <2312@emory.uucp> Organization: Optical Recording Corporation, Toronto, Ontario Lines: 13 Xref: yetti comp.sys.ibm.pc:8466 comp.lang.c:5057 > union { > struct { > short: ofst,sg; /* these may be backwards */ > } vals; > far char * ptr; > } pointr; > > pointr.vals.sg= seg; > pointr.vals.ofst=offst; The MSC FP_OFF and FP_SEG macros supplied in one of the standard header files might be used here instead. Their are valid as both rvalues and lvalues.