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

some question about assembler

 
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

some question about assembler
PostPosted: Thu May 13, 2010 3:01 pm     Reply with quote

Hi friends
After compiling my project i want edit assembly file and re-assemble it with PICC assembler. is it possible? if it's possible please explain me.
can i change or remove startup code for main function? if yes ...
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: Thu May 13, 2010 3:36 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=37759
Study



Joined: 09 Apr 2009
Posts: 29

View user's profile Send private message

PostPosted: Thu May 13, 2010 3:50 pm     Reply with quote

Thanks PCM, i read it, but i want to re-assemble it with PCWHD assembler not MPASM, as you said after importing hex and cof file in mpasm file is not ready to edit and assemble. is there any way to get asm file first and than assemble it with CCS assembler?
_________________
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: Thu May 13, 2010 4:09 pm     Reply with quote

These threads have some examples of using ASM code in CCS:
http://www.ccsinfo.com/forum/viewtopic.php?t=42353
http://www.ccsinfo.com/forum/viewtopic.php?t=41877
Study



Joined: 09 Apr 2009
Posts: 29

View user's profile Send private message

PostPosted: Thu May 13, 2010 4:29 pm     Reply with quote

Thanks again, and can I change or remove some codes that are with main function, i mean only main function make these asm codes:
.................... void main()
.................... {
0004: CLRF TBLPTRU
0006: BCF RCON.IPEN
0008: CLRF FSR0H
000A: CLRF FSR0L
000C: BSF ADCON1.PCFG0
000E: BSF ADCON1.PCFG1
0010: BSF ADCON1.PCFG2
0012: BCF ADCON1.PCFG3
--------------
i don't need some of them ( ADCON PORT settings ) can i remove them?
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: Thu May 13, 2010 4:37 pm     Reply with quote

I don't think there is a way to prevent the compiler from inserting the
start-up code. If there was a way, I think it would be in the description
for the #build directive, such as 'no_startup' or 'no_init'. But I don't see
an option like that in the manual, so I don't think CCS has that feature.
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