Download Solutions to End of Chapter Problems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Transcript
Problem 10.
(h)
i r eip shows that the address 0x8048393 is stored in the instruction pointer. So
we did jump.
(i)
Since 0 is less than or equal to 9, we satisfied the condition to jump to instruction
0x8048393.
(j)
0xbffff810
(k)
x/xw 0xbffff810 shows that 0x08048484 is stored at this location (as
expected!).
(l)
Entering x/s 0x08048484 we see that the string stored at this location is "Hello
World!\n".
(a)
The loop will iterate twice.
(b)
The output is:
Howitzer
Torpedoes
Problem 11.
(a)
mov DWORD PTR [ebp-4],0x5
(b)
ebp-4
(c)
0x0804838b
=
0xbffff814
8