Problem Session 5 for ECE 109 / CSCI 255

Running LC-3 editor and simulator

When you save your program, be sure to use a .asm extension.
Saving with .asm extension

Here's a simple assembled start on the program. You really should put your name in a comment.
A start on the assignment

When you are in the simulator, first load your .obj file.
Assignment in the simulator
Then you can load the assembled driver program.
Driver program

Let's try the following:

How large can this program be?

Program Instructions Data Total
Table lookup 21 67 88
"Simple" flowchart 57 10 67
"Complex" flowchart 40 3 43
Packed table lookup 37 19 56