subject

Suppose that you are given the following program (with memory addresses shown on the left). What hexadecimal value does EIP hold immediately after "inc EAX" has executed?

.data
0x100 x DWORD 153461
0x104 y BYTE 37
0x105 z BYTE 90

.code
main PROC
0x12 push x
0x17 mov AH, y
0x1C mov AL, z
0x21 call someProcedure
0x26 inc EAX
0x2B mov EBX, z
0x30 xor EAX, EBX
0x35 exit
main ENDP
END MAIN

(2) The following instruction will increment the stack pointer (ESP) by how many bytes?

ret 11

Answer

(3)True or F The following two instructions are equivalent.

ret

ret 4

(4) When passing parameters to a procedure on the stack, it is usually okay to change the value of the EBP register within the procedure. True False

(5) The RET instruction (without operands) will pop how many bytes off the stack? 4 16 8 2

(6)

Given the following register states, and using Base Indexed Addressing, which of the following lines of code will move the 11th element of the list array (of DWORDs) to the EAX register?

EDX register contans the address of the first element of list.
ESI register contains the address of the eleventh element of list.
EBX register contains the value 40,

mov eax, [esi]
mov eax, list[esi]
mov eax, [edx + ebx]
mov eax, list[ebx]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
You know the right answer?
Suppose that you are given the following program (with memory addresses shown on the left). What hex...
Questions
question
Mathematics, 23.06.2021 16:00
question
Mathematics, 23.06.2021 16:00