From: "Andreas Bierhals" Newsgroups: comp.os.msdos.djgpp Subject: Re: Porting problem from Borland C++ Date: 29 Oct 1997 23:33:30 GMT Organization: RRZN - Newsserver Lines: 29 Message-ID: <01bce4c2$e4d23120$LocalHost@bierhals> References: <345718dd DOT 193834 AT news DOT dial DOT pipex DOT com> NNTP-Posting-Host: h118.stud.uni-hannover.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter Stokes wrote in <345718dd DOT 193834 AT news DOT dial DOT pipex DOT com>... > > ... > uchar Setup(uchar CmPt) > { > unsigned long *ptr = (unsigned long *) 0x00400000; > uint SPA; > > /* check to see if it is a valid com port number and address */ > printf("Entering Setup"); > /*SPA = *(ptr+CmPt-1); /* get the address */ > printf("Address is %x", SPA); > ... Hi Peter, one simple question (to be sure to understand your problem...): what about the last two lines in the part of your code given above? Is 'SPA' commented out (and hence, uninitialized) ?! Greetings, Andreas B.