Author Topic: Keil ARMCC inline assembler  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline perdrixTopic starter

  • Frequent Contributor
  • **
  • Posts: 677
  • Country: gb
Keil ARMCC inline assembler
« on: August 16, 2023, 07:42:36 pm »
the following code is rejected by ArmCC compiler

Code: [Select]
asm (
"@ MOV R0, %0\n"
"@ MOV R1, %1\n"
"@ MOV R2, %2\n"
"swi 3\n" : : "r" (irq), "r" (isr), "r" (pri)
);

I understand that armclang will happily eat that as it's GCC type syntax

How should I write that for armcc?

Thanks
David
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf