Menu

Numbers X Y Found Locations X3100 X3101 Respectively Write Lc 3 Assembly Language Program Q43836023

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

• 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 isodd, place 1 at the same location.

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

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

x3100Xx3101Y

OUTPUTS: The outputs at their correspondinglocations are as follows:

x3102X + Yx3103X AND Yx3104X OR Yx3105NOT(X)x3106NOT(Y)x3107X + 3x3108Y – 3x3109Z
write in assembly for the lc-3 stimulator

Expert Answer


Answer to The numbers X and Y are found at locations x3100 and x3101, respectively. Write an LC-3 assembly language program that d…

OR