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

#org

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



Joined: 04 Sep 2004
Posts: 89
Location: NC

View user's profile Send private message MSN Messenger

#org
PostPosted: Mon Oct 25, 2004 6:16 am     Reply with quote

I have beening reading the manual and trying to figure out how the #org works. I assumed from the manual that the #org would place code in memory at specific addresses like:

#org 0x0F800, 0x0FFFF
UBYTE func1()
{
...
}

UBYTE func2()
{
......
}

#org default
UBYTE func3()
{
....
}

From what I can figure out func1() and func2() should be in the 0x0F800-0x0FFFF memory range, however func2() automagically goes back to the default memory range. So how do I get func2() to follow func1() with out know the excate size of func1() and using another #org?

Trampas
Trampas



Joined: 04 Sep 2004
Posts: 89
Location: NC

View user's profile Send private message MSN Messenger

PostPosted: Mon Oct 25, 2004 7:26 am     Reply with quote

I found that CCS requires the #org 0x0F800 on func2()

The #org really sucks as it's implementation depends on the compiler order of files. That is I have my code in several .c files, the #org is pain as the "link" order of the .c files is critical to operation.

Trampas
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