Question: Using MASM and the Irvine32 library functions, Define an array as follows: arrayB BYTE 1,2,3,4,5,6,7,8,9,10 1) Write a loop to exchange element i with element

Using MASM and the Irvine32 library functions, Define an array as follows:

arrayB BYTE 1,2,3,4,5,6,7,8,9,10

1) Write a loop to exchange element i with element i+5 when i' is varied from 0 to 4. When the program ends, the new array has the following values: 6,7,8,9,10,1,2,3,4,5

2) Provide screenshot of the arrayB watch window when it displays values of all the numbers

3) Display numbers one by one in the console window using Irvine library functions.

Use the code below for reference

--------------------

.586

.model flat,stdcall

.stack 4096

ExitProcess proto,dwExitCode:dword

include Irvine32.inc

.data

arrayB BYTE 1,2,3,4,5,6,7,8,9,10

.code

main proc

; code goes here

main endp

end main

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!