CS 2420-20 Homework 1

Due: Tuesday, January 17th, 2012 9:10am

Part 1 – Find Max

Write a program in Jam assembly language that finds the maximum number currently in memory. The program should halt with the maximum number in register 0.

Note that the result of your program (in register 0) depends on your program!

Handin the program as max.jam.

Part 2 – Rainbow

Write a program that fills the screen with bands of color: red, orange, yellow, green, blue, and purple. Since the screen is 80 by 25, each band should be 80 pixels wide and 4 pixels tall; leave the last row of pixels as black.

Handin the program as rainbow.jam.


Last update: Wednesday, January 11th, 2012
mflatt@cs.utah.edu