subject

Suppose a program has the following array declared in the data segment: array DWORD 99, 33, 77, 11, 22

And the program is supposed to reverse the array. After the program is finished, the array should be:

[22, 11, 77, 33, 99]

Which of the options below is the correct implementation of the program?

a.
mov ax, array
xchg ax, [array+4]
mov array, ax

mov ax, [array+12]
xchg ax, [array+16]
mov [array+12], ax

b.
mov ax, array
xchg ax, [array+16]
mov array, ax

mov ax, [array+4]
xchg ax, [array+12]
mov [array+4], ax

c.
mov ax, array
xchg ax, [array+8]
mov array, ax

mov ax, [array+2]
xchg ax, [array+6]
mov [array+2], ax

d.
mov ax, array
xchg ax, [array+2]
mov array, ax

mov ax, [array+6]
xchg ax, [array+8]
mov [array+6], ax

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
You know the right answer?
Suppose a program has the following array declared in the data segment: array DWORD 99, 33, 77, 11...
Questions
question
History, 07.01.2021 21:20
Questions on the website: 13722367