Write An assembly code in spcstudio
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-08-28 1:08 AM
Posted on August 28, 2016 at 10:08
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 Vanima
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-08-29 8:08 AM
Posted on August 29, 2016 at 17:08
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
