ECE 449 Assignment 8

  1. Write an assembly language program to test the various branch instructions.

    1. Demonstrate loops that cause the output to cycle a bit pattern left or right.

    2. Demonstrate a loop that add the numbers from 1 through 10.

    3. Write a loop that counts the length of a string (byte sequence) stored in registers R8-R12 (4 charcters per register, zero-delimited).

    Run your program within the Nios II Command shell, producing the usual text files and generate a MIF of your program.

  2. Modify the risc processor started in the last assignment by adding the branch instructions. As usual, setup your DE2 project so that it displays the results of each instruction on the DE-2 board. Download srisc5 for a version based on the last assignment. Demonstrate that your project runs the assembly language program from the previous problem.

  3. Modify vgalab1 so that it plays pattern of 16 x 16 equally-spaced gray levels.


Maintained by John Loomis, last updated 27 March 2008