I am writing an ISR using assembly language . I want to know how to call a C function from assembly.I am using keil compiler and 8051 microcontroller .Reply as soon as possible.
"LCALL function_name" So, presumably, the original syntax error was because the assembler didn't recognise the function_name? Did you provide an appropriate EXTERN declaration for function_name? If you didn't, how do you expect the assembler to recognise the function name? This is exactly the same as if you were calling an external assembler function!! "I replaced the above with the follwing statement LCALL base_address_of_function_name like LCALL 0x58DC" You really don't want to do that, do you? "After compiling the modified code(I mean converted code)I checked the code tab the base addresses of the functions are changed." Of course it did! That's the whole point of using symbolic names, isn't it?!
Thanks for ur suggestion.But can u then you seem surprised So, presumably, the original syntax error was because How come? the assemble and compiler require correct writing. Erik