Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago