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
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
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
Biology, 04.08.2019 08:30
question
Social Studies, 04.08.2019 08:30
Questions on the website: 13722361