• Inline __asm function
    I want from my C code to read value of PC, an for that I want write inline __asm function. I wrote this           int Get_Add(void)                  {                       int Add;                  ...
  • __asm inline selective disable optimization
    Hi, I'm an mixing assembly with C code using Keil uV 4.6 When I have optimization Level 3 (-O3) turned on, the compiler skips alot of assembly function memory reads & writes. I need every line to be...
  • Problem with __ASM
    I'm trying to access the cpsr on the arm, so I wrote the following code (actaully copied the assembly part out of the help file on MRS): __asm {MRS R0, CPSR} It gives me the following error: compiling...
  • using __asm to identify assembler functions
    Hi, I'm using the uVision 5.1.0 to write code for an STM32 part. I've created a function in a .c file with this signature... __asm uint32_t myfunc(void) { ... } The IDE complains with "error...
  • Inline Functions
    Hi, How can a write a inline function ? Thanks Michael !