I need two very basic, simple programs for my homework. These are exercises from Kip Irvine's book Assembly Language for x86 Processors.
1: Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers. Write a test program that calls your GCD procedure five times, using the following pairs of integers (5,20) (24,18) (11,7) (432,226) (26,13). After each procedure call, display the GCD.
2: Create an array of randomly ordered integers. Using the Swap procedure below as a tool, write a loop that exchanges each consecutive pair of integers in the array.
Swap PROC USES eax esi edi,
mov esi, pValX
mov edi, pValY
mov eax, [esi]
xchg eax, [edi]
mov [esi], eax
13 freelancers are bidding on average $85 for this job
Hi please check my profile. I have done other Assembly Language projects before. You just need to specify the Operating System that the test program must run on.