locked
Using ARM inline assembly

    Question

  • Hello,

    Is it possible to use inline assembly for ARM platform because I would like to port the following function :

    #include <armintr.h>
      extern "C" void __declspec(naked) SetStackPtr( void* ct, void *func_main, unsigned char* newsp )
      {
    
    	__emit(0xe1a0d002);	//mov r13, r2
    	__emit(0xe12fff11);	//bx r1
      }

    but __emit is not supported so do I need to write a separate asm ?

    Is it possible to use __asm keyword and what is the syntax ?

    Thanks


    Friday, July 13, 2012 3:38 PM

Answers