Other Parts Discussed in Thread: C2000WARE
Hello,
I would like to create an assembly function that trigger CLA task with the IACK instruction. This function has the task bit in parameter corresponding to the task we want to trigger. But the IACK instruction takes a 16-bit constant value as parameter, and i do not really know if it is possible or if I should have one function for each task I want to trigger.
Here the prototype and the function that I wrote:
void TRIGGER_TASK(const Uint16 ClaTaskBit);
.page
.global TRIGGER_TASK
.text
TRIGGER_TASK:
IACK AL
LRETR
.endasmfunc
And here the error I got (because AL register is not constant I assume):
>> Compilation failure
DRVCLA/SRC/subdir_rules.mk:30: recipe for target 'DRVCLA/SRC/TRIGGER_TASK.obj' failed
"../DRVCLA/SRC/TRIGGER_TASK.asm", ERROR! at line 32:
[E0003]
Syntax error - Operand 1
IACK AL
Errors in Source - Assembler Aborted
gmake: *** [DRVCLA/SRC/TRIGGER_TASK.obj] Error 1