- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
question is in the subject: is it possible write inline assembly for PSoC5? For PSoC3 is possible; there are several post about and it appears in documentation. But I found nothing about PSoC5
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The assembly for an ARM Cortex is so complicated, that everybody says : Hands off.
The fact is, it is a 3-address assembler with the opportunity to modify the third operand before its usage.
Have a look at the ARM website and get your shivers.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried but it is just too time consuming. May do it if really have to. however, I still prefer to use C unless needed to 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not recommending ASM development either but it is perfectly possible. There is nothing more difficult about it on an ARM processor as opposed to a 8-bitter, imho, but C compiles so efficiently on ARM that it seems a pain I can live without. Anyway, since I do plenty of things that are bad for me I'll tell you how and then leave it to your own conscience!
The procedure is simple enough.
- Open the Workspace Explorer and right-click on the "Source Files" folder.
- Select "New Item..." to open the dialog.
- Choose either "GNU ARM Assembly File" or "RealView ARM Assembly File" and give your file a name.
- Write ASM code, build, curse, fix ASM code, build, curse, cry, give up, etc
One thing to note is that the choice in step 3 depends on the compiler (which defines the assembler) you are going to use. GNU ASM is not compatible with RealView or MDK ASM. So check that before you take the plunge.
Good luck and enjoy yourself!
-- Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I imagined these answers. Sometimes customers do "strange" questions
I asked to this customer why this but I've not answer yet. But I've couriosity.
Thanks