Question: Write a subroutine in an assembly language program which divides an array of 20 elements into two halves. It rotates left the first half and

Write a subroutine in an assembly language program which divides an array of 20 elements into two halves. It rotates left the first half and rotates right the second half 5 times.

EXAMPLE:

Here is an Integer Array of 16 elements to illustrate Array1 : 4,8,5,9,2,24,6,41,11,14,15,18,1,8,7,3 1 st Half: 4,8,5,9,2,24,6,41 after left rotation 24,6,41,4,8,5,9,2 2 nd Half: 11,14,15,18,1,8,7,3 after right rotation 18,1,8,7,3,11,14,15 So the original array will be after the execution of program Array1: 24,6,41,4,8,5,9,2,18,1,8,7,3,11,14,15

kindy i need answer in 30 min please . and i need answer in assembly language

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!