CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

declare variable in specific address?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Study



Joined: 09 Apr 2009
Posts: 29

View user's profile Send private message

declare variable in specific address?
PostPosted: Sun May 16, 2010 2:25 pm     Reply with quote

Hi friends
How can i define my variable on specific ram address? i.e what should i do if i want to declare unsigned int variable on 0x20?
Regards
_________________
Sorry if i have much mistakes, my english is not good.
Thanks a lot for your helps.
Have a good time
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 16, 2010 2:59 pm     Reply with quote

Quote:

what should i do if i want to declare unsigned int variable on 0x20?

Download the CCS manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
Go to the list of functions by group, on page 92 (page 104 in the Acrobat
reader).

Look in the section on Memory Control. There is a pre-processor
command that will do what you need.
Study



Joined: 09 Apr 2009
Posts: 29

View user's profile Send private message

PostPosted: Sun May 16, 2010 3:09 pm     Reply with quote

Like always Thanks PCM, I think #LOCATE is what i need.
_________________
Sorry if i have much mistakes, my english is not good.
Thanks a lot for your helps.
Have a good time
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group