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
Posted: Wed May 10, 2006 10:44 am
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)
Re: Is it possible? ASM pic16F873 to C pic18F2620
Posted: Fri May 12, 2006 12:23 pm
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.
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