_asm_volatile - syntax Tricore Aurix

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Level 3
Level 3
50 sign-ins 25 replies posted 25 sign-ins
hello developers,
i am trying to understand the assembly syntax used in Tricore TC277 development.
I came across this syntax and trying to understand it.

vptr = TriCore_int_table;
__asm volatile ("mtcr $biv,%0" : : "d" (vptr));

in the syntax i can understand they are setting the BIV register. i am trying to understand exactly the syntax itsel- How they do it.

please also can any one suggest me , if there is any document for Tricore which contains all the assembly syntax s.

Kindly help me in this regard.

thank you very much.
1 Reply
100 solutions authored 5 likes given 50 likes received
Yes, refer to tool vendor's documentation (user guide) for the toolchain that you are using (i.e. Using Assembly in the C Source: __asm() ). If you want to write your own assembly routine (.s file) then you can look to the Infineon core architecture manual - Instruction set. You still need to adapt the syntax to match the toolchain being used.