3.2.31. reg_str

Returns the value of a specified register.

Syntax

unsigned long reg_str (name)
char *name;

where:

name

The register name.

Description

This macro takes a register name from a string and returns the value for the register.

Return value

unsigned long

The value for the register.

Rules

You must be connected to a target.

Example

This example shows how to use reg_str on the command line:

> ce reg_str("@CPSR")
  Result is: 211  0x000000D3

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0175K
Non-Confidential