8051 include file issue

Hi,

I wrote a very long routine and and hence i want to put it in seperate files for cleaner view,Im using an 8051 ,coding in assembler ,does any one know how for example do you  seperate  your file and include it in your main file , so that at the time of call it can go to that file ,inside the routine, do its job and come back where it was going to execute the next instruction , I have tried it but as it goes in the other file and comes back to the main file ,it goes to the first instruction in my code instead of basically continuing where it left off ?


Thanks
Owais Ahmed  ,

More questions in this forum