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, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Which element will you include to present numerical on a slide? a: graph b: text c: flowchart d: shapes
Answers: 1
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, 17.10.2019 01:00
question
Social Studies, 17.10.2019 01:00
question
Mathematics, 17.10.2019 01:00
Questions on the website: 13722362