home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!uwm.edu!cs.utexas.edu!sun-barr!olivea!decwrl!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!nntpd.lkg.dec.com!jit345.bad.jit.dec.com!diamond
- From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
- Newsgroups: comp.std.c
- Subject: Re: TMS320C25 AND C
- Message-ID: <1993Jan27.020506.22321@nntpd.lkg.dec.com>
- Date: 27 Jan 93 02:05:06 GMT
- References: <1993Jan26.165328.1@sask.usask.ca>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Reply-To: diamond@jit.dec.com (Norman Diamond)
- Organization: Digital Equipment Corporation Japan , Tokyo
- Lines: 24
-
- In article <1993Jan26.165328.1@sask.usask.ca> uttamchandan@sask.usask.ca writes:
- >I WNAT TO READ DATA FROM A FILE AND WRITE TO MEMORY ADDRESS SAY
- >BASE_IN=7000..
-
- The standard allows integers to be cast to pointers, though the result is
- implementation-defined. Consider something like:
- char *BASE_IN;
- BASE_IN = (char *) 7000;
- fread (BASE_IN, whatever_size, 1, whatever_file);
- (Or if you meant 7000 as a hexadecimal address then say 0x7000.)
-
- >THEN READ IT .. PROCESS IT... THEN WRITE TO MEMEORY AT BASE_OUT=10000
-
- char some_char;
- char *BASE_OUT;
- BASE_OUT = 10000;
- some_char = *BASE_IN;
- *BASE_OUT = process(some_char);
-
- This has been a service of the comp.std-and-homework-server.c newsgroup.
- --
- Norman Diamond diamond@jit.dec.com
- If this were the company's opinion, I wouldn't be allowed to post it.
- Pardon me? Or do I have to commit a crime first?
-