Homework 6, A few short programs.

Short Description:

Write the following programs to run on the simulator presented in class.

Goals

When you finish this homework, you should have:

Formal Description

  • Please write the following programs in machine language for the 8 bit simulated computer presented in class.
    1. Three numbers are stored in memory (location your choice). Write a program the finds the sum of these numbers.
    2. Write a program that will compute and print the positive powers of two between 20 and 27. Hint: 2n+1 = 2n+2 n.
    3. Three positive numbers are stored in memory locations 13, 14, and 15. Write a program that will find and store the largest in the accumulator. I used every memory location to perform this task, so you are not required to output the value, just store it in the ACC.

    Required Files

    A word document that contains

    Submission

    Submit the assignment to the D2L folder Homework 6 by the due date.