Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpmcaa!marco From: marco@hpmcaa.mcm.hp.com (Marco Dalla-Gasperina) Newsgroups: comp.sys.ibm.pc Subject: Re: ABSOLUTE ADDRESSING IN C Message-ID: <9240007@hpmcaa.mcm.hp.com> Date: 5 Jul 89 16:19:25 GMT References: <1344@sunset.MATH.UCLA.EDU> Organization: HP McMinville Division Lines: 28 / hpmcaa:comp.sys.ibm.pc / regwan@sonia.math.ucla.edu (Eliaho Regwan) / 6:10 pm Jul 4, 1989 / HELP A friend is working on a IBM PC with a 80186 and it has an eprom of some sort. She needs to set a pointer to an ABSOLUTE ADDRESS (inside the eprom). She is only able to get relative addresses with a block of memory. DOES ANYONE KNOW HOW TO DO THIS?? PLEASE. THANKS. ROGER ---------- try p = (char far *) 0x12345678L; that will load p with 1234:5678 (in ssss:oooo form). or - #include FP_SEG(p) = 0x1234; FP_OFF(p) = 0x5678; for the same results; marco