subject

Assignment 4 A Insert the following variables in your program:

.data
Uarray WORD 1000h, 2000h, 3000h, 4000h
Sarray SWORD - 1, - 2, - 3, - 4

Write instructions that use direct offset addressing to move the four values in Uarray to the EAX, EBX, ECX, and EDX registers. When you follow this with a call DumpRegs statement, the following register values should display:

EAX = 00001000 EBX = 00002000 ECX = 00003000 EDX= 00004000

Next, write instructions that use direct offset addressi ng to move the four values in Sarray to the EAX, EBX, ECX, and EDX registers. . When you follow this with a call DumpRegs statement, the following register values should display:

EAX = EBX = E ECX = D EDX= C

Required:
Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPEOF, and LENGHTOF operators to make the program as flexible as possible if the array size and type should be changed in the future. Optionally, you may display the modified array by calling the DumpMem method from the Irvine32 library.
Write a program that implements the following arithmetic expression:

EAX = -val2 + 7 - val3 + val1

Use the following data definitions:

val1 SDWORD 8
val2 SDWORD -15
val3 SDWORD 20

In comments, next to each instruction, write the hexadecimal value of EAX. Insert a call DumpRegs statement at the end of the program.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Your business be in google top rank.more the rank more the business leads.for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services,online seo expert services,
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Looking at the electroscope, describe how you can cause the two leaves at the bottom to repel each other and stay that way
Answers: 3
You know the right answer?
Assignment 4 A Insert the following variables in your program:

.data
Uarray WORD...
Questions
question
Mathematics, 01.03.2021 21:50
question
Mathematics, 01.03.2021 21:50
question
Arts, 01.03.2021 21:50
question
Mathematics, 01.03.2021 21:50
question
Mathematics, 01.03.2021 21:50
Questions on the website: 13722363