Hi "kavaler",
Thank you for your solution, I try it, an it's works is you declare the
function pointer in local variable !
So, the compiler don't use an indirect instruction (calla r10)
But be careful if your declation is global, the compiler use a fatal
indirect instruction (calla @address), and the program will crash !
For memory :
Address_storage:
.word _Function_Address_Only_16_bit_are_stored_
calla Address_storage ; cause a cash
mov #Address_storage, R15
calla @R15 ; cause a crash
mov #Address_storage, R15
mov @R15, R15
calla R15 ; correct call !
Regards, Thierry
------------------------------------------------------------------------------
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users