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 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Insert the following variables in your program:

.data

uarray word 1000h, 20...
Questions
question
English, 19.02.2021 21:10
question
Mathematics, 19.02.2021 21:10
question
English, 19.02.2021 21:10
question
Mathematics, 19.02.2021 21:10
Questions on the website: 13722363