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

Is it possible? ASM pic16F873 to C pic18F2620

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



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

Is it possible? ASM pic16F873 to C pic18F2620
PostPosted: Wed May 10, 2006 10:07 am     Reply with quote

I have an assembly language program written in Tech-Tools ASM for the 16F873 (8051-like instructions). I can disassemble the hex file into microchip assembly using CCS Disassembler Tool. Can I take that raw assembly code and recompile using CCS to make the program work in the 18F2620? Without completely rewriting the program in C? What other options do I have? Why?... You ask.... The technicians have hundreds of the 2620 chip and they want to get rid of the 873 chips.


Thanks.
Ttelmah
Guest







PostPosted: Wed May 10, 2006 10:44 am     Reply with quote

Simple answer. No.
At the very least, you would have to change every reference to every internal register in the PIC, and many of the bit definitions inside these. With this done, you might be about 75% of the way there, using normal assembler, but the CCS assembler has non standard syntax for many instructions, so would add further problems.

Best Wishes
carmarmu



Joined: 09 May 2006
Posts: 15
Location: Valencia (Spain)

View user's profile Send private message Send e-mail MSN Messenger

Re: Is it possible? ASM pic16F873 to C pic18F2620
PostPosted: Fri May 12, 2006 12:23 pm     Reply with quote

Itīs impossible.
Friend...you will have to return to write code.

ljbeng wrote:
I have an assembly language program written in Tech-Tools ASM for the 16F873 (8051-like instructions). I can disassemble the hex file into microchip assembly using CCS Disassembler Tool. Can I take that raw assembly code and recompile using CCS to make the program work in the 18F2620? Without completely rewriting the program in C? What other options do I have? Why?... You ask.... The technicians have hundreds of the 2620 chip and they want to get rid of the 873 chips.


Thanks.

_________________
**CaRmArMu** Valencia (Spain)
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