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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:20
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
You know the right answer?
Insert the following variables in your program:

.data

uarray word 1000h, 20...
Questions
Questions on the website: 13722362