Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!seismo!vrdxhq!tom From: tom@vrdxhq.UUCP Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Assigning to Pointers Message-ID: <3537@vrdxhq.UUCP> Date: Tue, 28-Apr-87 12:56:50 EDT Article-I.D.: vrdxhq.3537 Posted: Tue Apr 28 12:56:50 1987 Date-Received: Thu, 30-Apr-87 01:48:05 EDT Organization: Verdix Corporation, Chantilly, VA Lines: 45 Xref: utgpu comp.sys.ibm.pc:3221 comp.lang.c:1879 This may be a dumb question, but could someone please explain to me how I assign an absolute address to a pointer to an array? I'm trying to overlay various structures and arrays at different times on top of the physical page frame in EMM. I'm using MSC 4.0 I want to do the following : int *aa[]; aa = 0x50000; -- or even better -- struct POINTER_PARTS { unsigned offset_part; unsigned segment_part; } union POINTER_ACCESS { struct POINTER_PARTS pp; int *far_pointer; } union POINTER_ACCESS upa; upa.pp.segment_part = 0x5000; upa.pp.offset_part = 0x0; aa = upa.far_pointer; === I keep getting "need lvalue" type errors. Any help anyone can provide, or comments on my code example, are greatly appreciated.