This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

inline breakpoint

When using the monitor i would like all ASSERTs to force a break out to the debugger. Is there any way of doing this with some inline C or assembler code?

Many Thanks,
Martin.

Parents
  • Thanks for the answer and I will use this if there is no other way but is there any way of achieving this programatically?

    Have a look at the instruction set of the '51 and try to find an instruction that acts as a break point. (Hint: There isn't one).

    In VC++ I think you can do something like __asm int3 to force the program to break out to a debugger.

    And what makes you think that a '51 will act anything like a PC ?

Reply
  • Thanks for the answer and I will use this if there is no other way but is there any way of achieving this programatically?

    Have a look at the instruction set of the '51 and try to find an instruction that acts as a break point. (Hint: There isn't one).

    In VC++ I think you can do something like __asm int3 to force the program to break out to a debugger.

    And what makes you think that a '51 will act anything like a PC ?

Children