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 / 40
39  |  41
Subject: 
IC Problems
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 8 Feb 1996 18:58:51 GMT
Original-From: 
Brian Peter Schmalz <csc_schmalzb@SAYNOTOSPAMlawrence.edu>
Viewed: 
2124 times
  
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 define a list of consecutive
memory locations in a .icb file and then access them from within a loop in a .c
file? I can't pass the address of the first variable from the .icb routine to
the .c routine, because it is an interrupt handler. However, I can just say
address=&a0;
in my .c file to get the address of the first of 16 variables from within my
.icb file. But now how can I have IC get the rest of the variables? I can do a
intone=peekword(address);
but after that, how do I do the next one, i.e.
inttwo=peekword(address+1);
and the 3rd, and 4th, etc.

Anybody run into this before or have any ideas for me?

*Brian



Message has 1 Reply:
  IC Problems
 
(...) 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 (...) (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