This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

call asm routines from main

Hi,

I have a problem when mixing the C and asm (algebric for C54x).

for example i have 2 files:

1. Main.c file:

extern  void Init();

void main() {

Init();

Fct1();

Fct(2);

}

2. Routines.asm file:

.def  Init

.def _fct1

.def _fct2

_init:

; my init

return; ret from init

_fct1:

; my function 1

return; ret from function


Question: 

when I debug step by step, the program starts with main, then init, but after that, don’t enter to the fct1 !!!

in CCS debug i had >>> No source available for 0xf237  (no symbols are defined for 0x0fAADD) !!!

 Basically, after the finish of init function (after return), the fct1() sould be called and so on, right ??

or There is something else missed in my program?