Question: Write an assembly program lc 3 - edit for Given the values of integers in memory at addresses x 3 0 0 0 to x

Write an assembly program lc3-edit for Given the values of integers in memory at addresses x3000 to x3009 and an integer K at memory location x300A. Write an assembly language program to find two numbers X and
Y converts the property with the value farthest from K and X < K and Y > K. Store the values X and Y in memory cells x300B, x300C respectively. The program starts at address x3010. If X, Y cannot be found, the value in memory cell x300B, x300C is x0. Example:
X3000 x17 #23
X3001 XOC #12
x3002 x0E #14
X3003 x06 #6
X3004 x2B #43
X3005 x39 #57
X3006 x19 #25
x3007 x36 #54
x3008 x4C #76
x3009 x22 #34
X300A x30 #48
X300B x06 #6
x300C X4C #76

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!