Assembly Language for Beginners

(Jeff_L) #1

1.27. POINTERS TO FUNCTIONS


MSVC + OllyDbg


Let’s load our example into OllyDbg and set a breakpoint oncomp(). We can see how the values are
compared at the firstcomp()call:


Figure 1.109:OllyDbg: first call ofcomp()

OllyDbg shows the compared values in the window under the code window, for convenience. We can also
see that theSPpoints toRA, where theqsort()function is (located inMSVCR100.DLL).

Free download pdf