Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

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

Altera_Forum
Honored Contributor II
2,331 Views

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 II
1,339 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
0 Kudos
Reply