Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

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

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
No RepliesBe the first to reply