Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: This programming project will help you to apply concepts learned in programming the LC-3 machine; to write ML operate and data movement instructions ONLY;

Objectives: This programming project will help you to apply concepts learned in programming the LC-3 machine; to write ML operate and data movement instructions ONLY; and to use LC-3 Simulator to debug and execute a program. Description: For this programming project, you will write an LC-3 ML program that will convert ASCI decimal characters stored in memory, to their corresponding two's complement representations. After conversion, the values will be added and the results stored in memory. Specifics: Your program should be written in LC-3 machine language. You may write the instructions either in binary or hexadecimal form Load your program in memory address x1200 Assume that five (5) ASCII digits to be converted and added is stored starting in memory address x3000 Overwrite each of the original ASCII digiti memory with its corresponding two's complement representation. Store the sum of all the decimal values into memory address x3100. Important Notes: You may use any of the memory addressing modes, as needed. For indirect addressing, you are allowed to populate memory with memory addresses using a data file. Example: Address Initial Contents Results x3100 undefined 190000 0000 00010011 T=0000 0000 1-0000 0000 x3004 0011 0001 00000001 2=0000 0000 20000 0000 x3003 00110010 0000 0010 x3002 40000 0000 40000 0000 00110100 0000 0100 x3001 7 0000 0000 70000 0000 0011 01111 0000 0111 5 0000 0000 50000 0000 x3000 0011 0101 0000 0101 1. Provide sufficient documentation in the form of comments and white space. 2. Submit the following: your source code as a test file a data file to populate memory with the ASCII digits any other data file you need to populate memory for indirect addressing if needed

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

More Books

Students also viewed these Accounting questions

Question

1 What demand is and what affects it.

Answered: 1 week ago