The r command sets or displays register values.
The format for the r command is:
r [reg|* [val|field val]] where:
reg | is the name of the register or registers (specified by wildcard characters) to display or modify. |
val | is the value to which the specified register or registers should be modified. |
field val | is the value to which the specified field in the specified register should be modified. |
* | displays the contents of all registers except floating-point registers. |
f* | displays the contents of all floating-point registers. |
Invoking the r command without any parameters or arguments displays a list of all the general-purpose registers.
The character and word wildcards, "*" and "?", can be used in the register name. The '?' character matches any single character, while the '*' character matches any number of any characters. This command accepts both hardware and software names. Examples illustrating the use of the r command follow.
r | Display all General-purpose registers. |
r * | Display all register values. |
r 08 | Display r08 |
r r* | Display r00 through r31. |
r f* | Display all fpu registerr. |
r f17 | Display fpu register 17 |
r 04 45 | Set register 04 to 00000045. |
PMON> r r00-07 00000000 03dfffc0 00000000 00000000 00000000 00000000 00000000 0000000 r08-15 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r16-23 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r24-31 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000Display all registers. Note that the actual registers that are displayed by the "r *" command depends on what type of processor you are using. This display was generated using a PowerPC.
PMON> r * r00-07 00000000 03dfffc0 00000000 00000000 00000000 00000000 00000000 00000000
r08-15 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r16-23 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r24-31 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 f00-03 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f04-07 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f08-11 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f12-15 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f16-19 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f20-23 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f24-27 0000000000000000 0000000000000000 0000000000000000 0000000000000000 f28-31 0000000000000000 0000000000000000 0000000000000000 0000000000000000 fsr = 0000000000000000 cpc = 00100000, lr = 00000000, ctr = 00000000, sr = 00003032 PMON> Set the register 'r02' to a value of 0x00000100
PMON> r 02 00000100
PMON>
Navigation: Document Home | Document Contents | Document Index