Date: Thu, 19 Feb 1998 11:58:17 +0100 From: kama AT hippo DOT fido DOT de (Karl Heinz Marbaise) Subject: Re: assigning the correct adress? Message-ID: References: <34e9a8df DOT 2317141 AT news DOT rug DOT nl> Newsgroups: comp.os.msdos.djgpp Organization: Fido.DE domain gateway (IN e.V.) Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk DR> ptr_TMP_l = & (byte) reg_TMP; DR> ptr_TMP_h = & (byte) reg_TMP + 1; Try this: ptr_TMP_l = (byte *) ®_TMP; ptr_TMP_h = (byte *) ®_TMP + 1; Within the last one you may be have to use parentheses, like this: ptr_TMP_h = ((byte *) ®_TMP) + 1; I'm not sure(try it). DR> Donnie Roos. Kind regards Karl Heinz Marbaise Fidonet: 2:2452/110.18 Internet: kama AT hippo DOT fido DOT de