subject

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 = 1000 ebx = 2000 ecx = 3000 edx= 4000

next, write instructions that use direct offset addressing 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

assignment 4b - p. 130 exercise 5

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. see chapter 5 for details.

assignment 4c - p. 130 exercise 7

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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
image
Computers and Technology, 24.06.2019 07:20, stephanieyingepbtcf8
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
image
Computers and Technology, 24.06.2019 10:00, noahmace
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
You know the right answer?
Insert the following variables in your program:

.data

uarray word 1000h, 20...

Questions in other subjects:

Konu
History, 23.10.2019 12:50
Konu
Mathematics, 23.10.2019 12:50
Konu
Chemistry, 23.10.2019 12:50
Konu
Chemistry, 23.10.2019 13:00