
HW 7:
1) Write and test an LC-3 assembly language program to calculate and print on the
console, the sum of two double digit hexidecimal numbers entered from the
console.
Show:
- A clear and complete Flow Diagram
โ A snapshot of your well commented Assembly program in the LC-3
Editor Window with the Assembly response.
โ A snapshot of the Simulator execution and the Console Display
Window with the input and output displayed.
2) Write and test an LC-3 assembly language program to calculate and print all the
numbers in the Fibonacci series that can be stored in words of the LC-3. The
program should stop when it determines it has found the largest number.
You can print out the values in hexadecimal rather than decimal to simplify your
output algorithm. Hint: Testing for sign and shifting left, four times will
identify the four bits of one hex character. Convert the character to ASCII
and print it. Repeat this three more times to print the four hex characters of
one number.
Show:
- A clear and complete Flow Diagram
โ A snapshot of your well commented Assembly program in the LC-3
Editor Window with the Assembly response.
โ A snapshot of the Simulator execution and the Console Display
Window with the Fibonacci numbers displayed.