I have to combine 2 assembly programs for my project. But, the problem is that both the programs are different and both are written in assembly. Both the programs start with org0000h and ends with 'end'. So, please give me suggestion to combine 2 assembly programs into a single program.
So - start by learning what "org" actually means. And what 'end' actually means.
Then you obviously also have to learn exactly what the two programs do - you have only one set of interrupt vectors, so you obviously have to adjust the code to share these vectors.
And you also have only one main loop, so you have to figure out how to "time slice" between the two programs, unless one or both of the programs just perform a single task and then ends with an empty loop.
I'm writing a program for automatic power factor correction. There are 2 sets of programs. I want to combine those programs. Any idea on how to combine those programs..??
"I'm (sic?) writing a program"
You are writing? Really?
It sounds more like you are simply bolting together stuff that others have written?
"There are 2 sets of programs"
First you just said 2 programs - now it's 2 sets of programs?!
"I want to combine those programs"
Yes - you've already said that.
" Any idea on how to combine those programs?"
Yes - Per's already answered that:
"you obviously have to learn exactly what the two [sets of] programs do - you have only one set of interrupt vectors, so you obviously have to adjust the code to share these vectors.
"And you also have only one main loop, so you have to figure out how to 'time slice' between the two programs, unless one or both of the programs just perform a single task and then ends with an empty loop"
Have you made a start on that yet...?
I'l stick on to what you guys suggested. Thanks.. :)