# The Register Window

The Register Window lists registers and their contents for the selected stack frame. It permits viewing the contents of registers in different formats, editing register values, and some display customizations.

In the image above, you can see all the registers on the left and their values on the right. At the top is an option menu to allow you to choose what group of registers to display. The groups names are preset according to the architecture being debugged. The default is "all". Registers highlighted in green have recently changed.

The Register Window will update the register contents in the display to match the stack frame currently being viewed in the Source Window and Stack Window.

Each time the program stops, the register window will automatically update. Registers that have changed since the last stop will be displayed in green.

### The Register Pop-up Menu

To activate the pop-up menu, click the right mouse button over a register. This will allow you change the way the register is displayed, or to remove it from the display. Or you can add the register to the watch window. For integer registers, you can also open a memory window at the location pointed to by the register.

### Editing a Register

To edit a register, simply click on it with the left mouse button. Type in the new value and hit enter. You can enter a decimal, hex, or float number and the type will be converted if possible. You may also enter an expression to be evaluated. For example, to set $r3 to the same as $r4, edit $r3 and enter "$r4" as the value. In the same way, you can set $pc to "main". The value of the register is set to the current value of the expression; it will not be reevaluated if the expression's value later changes.

Press the escape key on the keyboard to cancel your edit.