Link to home
Start Free TrialLog in
Avatar of dataman
dataman

asked on

asm int 3

Does anyone knows what the exact meaning is of next statement.

asm _int 3
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

On intel processors (x86) This interrupt is the "debugger interrupt".  Most debuggers (all probably) will "hook in" to this interrupt and when they detect it they will stop the running program.  This if you have a debugger running, the program will stop and the debugger will come up when the int 3 is run.  This can be very handy for debugging.  because you can place these statements throughout your code at lots of error locations and you don't have to set (and keep updated breakpoints at these locations.  

if there is no debugger on the system, this interrupt will return without doing anything and the program will continue running.

Let me know if you have questions.