Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purpose: The purpose of this assignment is to write a program in LC-3 assembly language code to find the sum and difference of two 8-bit

image text in transcribed
image text in transcribed
Purpose: The purpose of this assignment is to write a program in LC-3 assembly language code to find the sum and difference of two 8-bit unsigned numbers and store the result back in memory. The two unsigned numbers are specified in memory locations x4500 and x4501. Each 8-bit number is stored in bits [7:0]. Do not assume that bits [15:8) are zeros. Your program should store the sum of the two numbers in memory location x4502. Your program should store the difference of the two numbers (Numberl - Number2) in memory location x4503 Notes: The first line of your program must specify the memory address of the first instruction of your program. The LC-3 simulator will place your program starting at that address. For this assignment, you should place your program starting at x3000 (i.e. the first line of your program needs to be .ORIG X3000). Use the LC3Edit program to type in your programs. Your program needs to be in LC-3 assembly language. Please ask any TA or Dr. Telang if you have any questions. Your file should be named exactly after your EID, for example, xy1234.asm. Your program will not be graded if you fail to follow the file naming convention. Purpose: The purpose of this assignment is to write a program in LC-3 assembly language code to find the sum and difference of two 8-bit unsigned numbers and store the result back in memory. The two unsigned numbers are specified in memory locations x4500 and x4501. Each 8-bit number is stored in bits [7:0]. Do not assume that bits [15:8) are zeros. Your program should store the sum of the two numbers in memory location x4502. Your program should store the difference of the two numbers (Numberl - Number2) in memory location x4503 Notes: The first line of your program must specify the memory address of the first instruction of your program. The LC-3 simulator will place your program starting at that address. For this assignment, you should place your program starting at x3000 (i.e. the first line of your program needs to be .ORIG X3000). Use the LC3Edit program to type in your programs. Your program needs to be in LC-3 assembly language. Please ask any TA or Dr. Telang if you have any questions. Your file should be named exactly after your EID, for example, xy1234.asm. Your program will not be graded if you fail to follow the file naming convention

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago