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 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 24.06.2019 19:30
Which phrase is the best definition of a pivottable a a table containing data that is organized horizontally b a table used to calculate financial pivot values c a tool used to summarize data d a table containing specific formatting
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
He 98 pointsss how has computers changed over the years? how can they be used now? give details and such!
Answers: 1
question
Computers and Technology, 25.06.2019 05:20
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≤  ≤ 2. hint: use “ polar” and/or for “polar plot in matlab." include the title “'r(\theta)=4cos(4sin(\theta))”
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, 15.01.2020 15:31
Questions on the website: 13722363