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
Consult you copy of the manual, look up C<->asm interfacing.
For a generic assembly function, it's not clear that it can be called from C in the first place. If it doesn't follow the C51 calling convention, nothing you do on the C side can fix that.