Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

How can I insert .asm source code into a .c application?

Altera_Forum
Honored Contributor II
963 Views

Hi, 

I would like to use some functions of the default boot loader code from altera in /boot_loader_sorces. It´s written in asm. 

 

My application is in .c, I´m working with NiosII IDE9.1 SP1. 

How can I insert some parts of the code in .asm? 

 

I tried the instruction preceded by the keyword asm, but it doesn´t work. 

(asm wrctl status, r0) 

 

Can anyone help me? 

Thanks in advance, 

Melo
0 Kudos
0 Replies
Reply