2016-08-28 01:08 AM
Hi
I want to write some asm instruction in Spc studio but i don't know how can i write these instructions. if there is exist any sample please let me know about this sample. Thanks With Best Regards Nazerian Vanima2016-08-29 08:08 AM
Hello Vanima ,
The samples are in HAL (*.c , *.s files) in components directories#if CORE_SUPPORTS_IVORS
/* The core supports IVOR registers, the kernel requires IVOR4 and IVOR10
and the initialization is performed here.*/
#ifdef __ghs__
asm (
''e_li %r3, %lo(_IVOR4) \t
''
''mtIVOR4 %r3 \t
''
''e_li %r3, %lo(_IVOR10) \t
''
''mtIVOR10 %r3''
);
#else
asm volatile (
''e_li %%r3, _IVOR4@l \t
''
''mtIVOR4 %%r3 \t
''
''e_li %%r3, _IVOR10@l \t
''
''mtIVOR10 %%r3''
: : :
''memory''
);
#endif
#endif
All CPUs are compatible with the Power Architecture VLE instruction set, which supportssome code size reduction.
Best regards
Erwan