Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The numbers X and Y are found at locations x3100 and x3101, respectively. Write an LC-3 assembly language program that does the following. Compute the

The numbers X and Y are found at locations x3100 and x3101, respectively. Write an LC-3 assembly language program that does the following.

Compute the sum X +Y and place it at location x3102.

Compute X AND Y and place it at location x3103.

Compute X OR Y and place it at location x3104.

Compute NOT(X) and place it at location x3105.

Compute NOT(Y) and place it at location x3106.

Compute X +3 and place it at location x3107.

Compute Y 3 and place it at location x3108.

If the X is even, place 0 at location x3109. If the number is odd, place 1 at the same location.

The operations AND, OR, and NOT are bitwise. The operation signified by + is the usual arithmetic addition

Inputs: The numbers X and Y are in locations x3100 and x3101, respectively:

x3100 X
x3101 Y

OUTPUTS: The outputs at their corresponding locations are as follows:

x3102 X + Y
x3103 X AND Y
x3104 X OR Y
x3105 NOT(X)
x3106 NOT(Y)
x3107 X + 3
x3108 Y - 3
x3109 Z
write in assembly for the lc-3 stimulator

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago

Question

3. Define the attributions we use to explain behavior

Answered: 1 week ago