Is there anyway to monitor the carry bit using MPLAB?

Status
Not open for further replies.
It depends what you mean by monitor. The state of the carry bit is shown on the information line at the bottom of the screen. A capital C is carry set, lower case is carry clear.

If you want to break at a certain point only when the carry is set then the only way I know to do it is to insert extra code.
I.E.
Code:
        btfsc   STATUS,C
        nop   ;                 set a break point here

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…