To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 41
40  |  42
Subject: 
IC Problems
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 8 Feb 1996 20:42:58 GMT
Original-From: 
James Hu <JXH@CS.WUSTL.EDUstopspam>
Viewed: 
2156 times
  
"Brian" == Brian Peter Schmalz <CSC_SCHMALZB@lawrence.edu> writes:

Brian> But then the question still remains, how can I define a list of
Brian> consecutive memory locations in a .icb file and then access
Brian> them from within a loop in a .c file?
[ ... ]
Brian> Anybody run into this before or have any ideas for me?

My suggestion would be to set up an array of addresses in a .c file
pointing to the variables that you want to access:

int *address[5] = { &a0, &a1, &a2, /* ... */ };

-- James



Message is in Reply To:
  IC Problems
 
OK, OK. RTFM, I know. I looked at the on-line manual, and now realize that IC arrays are different than normal C arrays, and so you can't do stuff like int m() { int *address; address=&a0; address++; } But then the question still remains, how can I (...) (29 years ago, 8-Feb-96, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR