This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Call functions

Hi,

I have some assembly routines located in ROM memory, for example asmfunc that is located at address 0xF700 - is absolute address of flash memory.

The program memory is organized:
ROM code from address 0xF000 - 0xFFFF
Flash code from address 0x0000 - 0xEFFF

I have my C code and I want to call from C the assembly function asmfunc located at address 0xF700, how I can do this?

I know to call function asmfunc if my code is in Assembly using for example this:

asmfunc equ 0xF700
. .
lcall asmfunc
. .

Thanks,
Nels

0