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 LC3. This program should be named hwlsItOdd.hex. The file should be a
proper hex file for the LC3 processor.
A proper hex file must contain only hex characters (0-9 and A-F).
Each line should be a four-digit hex number. Do not include 0x or x at the beginning of this number.
The first line should be the starting address in memory, use 3000 to be safe.
The last line should be a halt (F025).
THERE SHOULD ONLY BE ONE HALT!
The lines between the first and last line should do the following:
Examine the values in R1.
If R1 is odd, return that value in R0.(i.e., copy R1 into R0.)
If R1 is even, return that value +1 in R0.(i.e., copy R1+1 into R0.)
 Write a program for the LC3. This program should be named

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!