Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Share header files between C and Assembly

$
0
0
emi, I believe this is possible, however it requires the use of some inline_asm pragma and some manipulation. I constructed this simple example in a c file, wrapped my assembly with the pragma, and was able to use the C level #define to assign value to assembly register: #define TEST 0 #pragma inline_asm func void func(){ MOV.L #TEST, R2 ; Assembly-language description }; void PowerON_Reset_PC(void) { _INITSCT(); func(); ... Does this help you? twelvexs

Viewing all articles
Browse latest Browse all 59170

Trending Articles