10.2.3. Testing a macro

Test the macro you have created by running the program and then calling the macro from the command line:

  1. Click on the Src tab to view the source file dhry_1.c.

  2. Set a simple breakpoint by double-clicking on line 150.

  3. Click Go to start execution. When asked for the number of runs, use a small number, for example, 5000.

  4. When the program reaches the breakpoint, enter the following command and press Enter:


    This displays the current value of the variable Int_2_Loc in the Output pane.

  5. Step through the program a few more times using the macro to monitor the variable. You can use the up arrow to step back through the commands already submitted on the command line.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B