Lab 2 Week 8: Wednesday Oct.21

In this lab assignment you will get started on the LC3 simulator to write a very simple LC3 program. You must write the code in assembly or binary: this is what you will hand in (or demo to the TA in the lab).

Write the LC-3  code to determine the maximum of two values, stored initially at memory locations x3100 and x3101. The two input values are loaded into R0 and R1, and the code should place the greater of these two numbers into register R5. Hint: you may find calculating R0-R1 useful.