NAME MODULENAME .... .... EXTRN CODE (function1) .... .... mov dptr,#0x9000 mov a,@dptr cjne a,#0x02,label1 lcall my_isr_function label: NOP .... .... Is this the correct way to call a C function from assembly?Do I need to save the program status before calling the my_isr_function?
Hello Mr.Neil and Mr.Franck thanks a lot. My code is working now. The mistake I did was before calling a function I was not saving the accumulator and PSW register contents , after doing that my code got worked. Once again thanks for helping me. Regards Shalini.
after doing that my code got worked You mat think so, but if you are calling an ISR, it is not. It may take as month before it fails, but it will. Erik