Computer Science 281
Computer Organization

Denison
CS281 Assembly 1

Assembly1

  1. Write a PowerPC assembly language program to output the following stanza to the console:

All the world's a stage
And all the men and women merely players.
They have their exits and their entrances,
And each man in his time plays many parts,
His acts being seven ages.

2. Write a PowerPC assembly language to compute and print out the result of the following expression:

For x = 5, y = -2, and z = 31,

4 * (x * x) + (x * y) - (y - z)