Hi Eric,
I am unclear which MCU and bootloader you are using.
Check out Application note AN0333, this discusses calling C functions from Assembly and Vice Versa.
The easiest way is to add a tag to the assembly with the leading underscore and call it from C (you will need to add the prototype function without the leading underscore).
Example (assuming there are no parameters):
| Code: |
Assembly code:
_MyBootLoaderFunction:
In the C file:
Void MyBootLoaderFunction();
|
Then you can call it like any C function.
You can also use inline assembly to jump to the tag or address directly.