Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:50, carterjavon6929
Python write an expression that executes the loop body as long as the user enters a non-negative number. note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds and report "program end never reached." the system doesn't print the test case that caused the reported message. sample outputs with inputs: 9 5 2 -1
Answers: 3
image
Computers and Technology, 23.06.2019 15:20, headshotplayzcod
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
image
Computers and Technology, 24.06.2019 03:00, SiegeHatake4534
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, BobBball9126
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
Do you know the correct answer?
Suppose a program has the following array declared in the data segment: array DWORD 99, 33, 77, 11...

Questions in other subjects:

Konu
English, 17.05.2020 20:57
Konu
History, 17.05.2020 20:57
Konu
Mathematics, 17.05.2020 20:57