www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/29/20:46:47

From: "Andreas Bierhals" <bierhals AT studserv DOT stud DOT uni-hannover DOT de>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Peter Stokes <peter DOT acs AT dial DOT pipex DOT com> 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.

  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019