LC3 Lab3

Objectives
In this lab, you will learn to work with
2. pointers

Exercise 1: arrays
Start with the skeleton code in lab3-1.asm and finish the program so that it computes the maximum
value stored in the array Data (whose length is given by label n). Put this maximum value into register R3.

Exercise 2: pointers
Start with the skeleton code in lab3-2.asm and finish the program so that it prompts the user for a
value 0 or 1. If the input is ‘O’ then it should print the ASCII character stored at address pointed to
by chrptr1. If the input is ‘I’ then it should print the ASCII character stored at address pointed to bi
chrptr2. Do not directly access the labels chr1 and chr2.