Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,251 Views

How to print string/integer to board/terminal in Nios ii Assembly

I am writing nios ii assembly programs for the DE1 Altera board/software. We have been tasked with writing a program to count the number of set bits in a 32 bit word. I have written the program and as of now it has the correct answer in the registers but I can’t figure out how to print to the terminal in the software or print to the board’s display if that is at all possible.  

If anyone can help me with the correct nois ii code of how to print using board it would be greatly appreciated. I have searched online and in all the altera documents and still can’t find anything on how to print/output a string or number saved in a register. Please help or direct me to someone/something that can help.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
259 Views

I think the example(s) that are part of the Nios II EDS would work for you...particularly this one: 

 

http://www.altera.com/support/examples/nios2/exm-hello_free.html 

 

Cheers! 

 

slacker
Reply