Question: Question 3 : Parallel Port Programming ( 1 0 marks ) A system based on the Nios II has an output parallel port with a

Question 3: Parallel Port Programming (10 marks)
A system based on the Nios II has an output parallel port with a data register and a status register. Bit 6 is the flag bit in the status register. Both registers in the parallel port interface are word-sized. Assume that the assembly-language source file already has definitions for symbols OUTPORT_DATA and OUTPORT_STATUS that have associations to 32-bit addresses for the two interface registers.
Write a modular subroutine SendDataToPort(list_ptr, n) in Nios II assembly-language which accepts a pointer to a list of word-sized elements and the number of word-sized items in the list. With appropriate code, transfer the n elements of the list to the external device attached to the output port described above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!