Question: Assembly Language Create the two programs described below. 1 . reorder.asm - rearranges the values of the following array into this order: 43, 2, 21

Assembly Language

Create the two programs described below.

1. reorder.asm - rearranges the values of the following array into this order: 43, 2, 21. Use only MOV and XCHG to accomplish the desired result. DO NOT use any immediate values. Use only direct offset addressing to accomplish the goal. Be as efficient as you can. arrayD DWORD 2,21,43

2. fibonacci.asm - computes the following.

a. Compute fib(n) for n = 2, 3, , 6 using an array.

b. Store each computed value in an array of the appropriate size and type.

c. Store fib(3) through fib(6) in consecutive bytes of the ebx register starting from the lowest byte; that is, fib(3) is stored in the low byte (bl) of ebx, fib(4) is stored in the next byte (bh), fib(5) is stored in the next byte of ebx and fib(6) is stored in the highest byte.

d. If you dont know what the Fibonacci sequence is, there is a lot of information online that you can find.

Please answer the questions step by step. Thank you.

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!