Datasheet
Tutorial
© 2006 Microchip Technology Inc. DS51584B-page 23
2.7.2 Step the Program
1. Press <F7> to single step the code. The green arrow moves to the code at
__reset in the Eg1_BlinkLed.s source code, as shown in Figure 2-15.
FIGURE 2-15: SOURCE CODE WINDOW
2. Right click the line of code mov W0,W14 and choose Run to Cursor
. The green
arrow moves to repeat #12 because it has executed the prior lines of code up
to and including mov W0,W14.
3. From the View
menu, select Watch to open a Watch window, and select
RCOUNT in the Add SFR pull-down list.
4. Click Add SFR to add the RCOUNT register to the Watch window.
5. Press <F7> a few times and watch the RCOUNT value decrement (see
Figure 2-16). RCOUNT is the repeat loop counter and decrements to zero as the
instruction in a repeat loop is executed several times.
FIGURE 2-16: WATCH WINDOW DISPLAY