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 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
You know the right answer?
Insert the following variables in your program:

.data

uarray word 1000h, 20...
Questions
question
Mathematics, 29.10.2020 03:50