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, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
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
Mathematics, 11.03.2021 01:00
question
Mathematics, 11.03.2021 01:00