AnsweredAssumed Answered

Interrupt function with asm

Question asked by AngusZhao on Jul 17, 2011
Latest reply on Jul 19, 2011 by gyi

How to do some work in this asm code and I don't need any return value ?

It is compile in VDSP++5.0 udapte 9 .

 

 

//////////////////////////////////////////////////////////////////////////////////////

//this funcion use to enable/disable irq

//////////////////////////////////////////////////////////////////////////////////////

//

void asm_enable_irq(int lvl)

{

       int result;

       asm(       

           "sti %1;"   

           : "=d" (result)  //  How to do some work in this asm code and I don't need any return value ?  I don't need this word .

           : "r" (lvl)

       );

 

}

Outcomes