Question: Write a program for the LC 3 . This program should be named hwlsItOdd.hex. The file should be a proper hex file for the LC
Write a program for the LC This program should be named hwlsItOdd.hex. The file should be a
proper hex file for the LC processor.
A proper hex file must contain only hex characters and AF
Each line should be a fourdigit hex number. Do not include or at the beginning of this number.
The first line should be the starting address in memory, use to be safe.
The last line should be a halt F
THERE SHOULD ONLY BE ONE HALT!
The lines between the first and last line should do the following:
Examine the values in R
If R is odd, return that value in Rie copy R into R
If is even, return that value in Rie copy R into R
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
