10.5. Setting the PC to the address of an instruction or line of code

When viewing code in the Disassembly tab or a source file, you can set the PC to the address of an instruction or a line of code in your source file.

To set the PC to the address of an instruction or line of code:

  1. Right-click in the gray margin at the instruction or line of code to display the context menu.

  2. Select Set PC to Here from the context menu.

    This has the following effects:

    • If the Registers view is open, the color of the PC register value changes to blue to indicate that the value has changed.

    • The PC changes to the address of the chosen instruction or first address of the line of code.

    • A red box is drawn around the chosen instruction or line of code, to indicate the location of the PC.

    • The Call Stack view changes to show the new context, but does not have any traceback information.

    • The Locals, Statics, and This tabs in the Locals view show the variables that are in scope at the new context.

    • A SETREG command is issued.

See also:

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111