Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
Objectives: This programming projectw help you to apply concepts learned in programming the LC-3 machine to write ML operate and data movement instructions ONLY to use LC3Edit for program editing; and to use LC-3 Simulator to debug and execute a program. Description: For this programming project, you wl write an LC-3 ML program that will convert ASCII 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 x3000. Assume that the ASCII representation of a two-digit decimal value is stored in a single memory location where bits [15:8] contain the tens digit value and bits [7:0 contain the ones digit value. For example, 0011 00110011 0100 represents the ASCII digits '3' and '4', which represents the decimal number 34 Assume that two (2) two-digit ASCII values are stored in addresses x3101 and x3102. Convert each to its decimal values, add the values and store the sum in memory address x 3100 Overwrite the stored ASCII values with the converted decimal values in memory

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

Step: 3

blur-text-image

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago