AnsweredAssumed Answered

asm() vs. scratch register

Question asked by rkn on Apr 22, 2013
Latest reply on Apr 23, 2013 by rkn

Hi,

 

I'm wondering is there any restriction in using registers when using the inline assembly function ask() in a C routine?

When writing an assembly function called by a C program there is the group of scratch registers and the group of non-scratch registers which need to be saved and restored. Therefore, is there such a restriction for asm(), too or can I just use any register I want and the compiler cares for the rest?

 

Raphael

Outcomes