Everything
 

CPU Register panel


This panel displays the contents of the CPU registers (general-purpose and control registers) and change register values (see "2.11.2 Displaying and changing the CPU registers")

Note that this panel can be opened only when CS+ is connected with the debug tool.

Remark

By double-clicking a line delimiting each area on the panel, it is possible to change the relevant area to the smallest displayable width without omitting the content in it.

Figure A.10

CPU Register Panel

 

This section describes the following.

[How to open]

-

Choose [CPU Register] from the [View] menu.

[Description of each area]

(1)

[Register Name] area

This area displays register names in list form, with the types of registers classified by category (folder).

The meaning of each icon displayed here is described below.

Note that the category names or register names displayed here cannot be edited nor deleted.

 

Indicates that the register names belonging to this category are displayed. Double-clicking the icon or clicking the "-" mark closes the category and hides the register names.

 

Indicates that the register names belonging to this category are hidden. Double-clicking the icon or clicking the "+" mark opens the category and displays register names.

 

Shows a register name. Double-clicking the icon or clicking the "+" or "-" mark displays or hides the low-level register names (names representing part of a register).

 

Shows a register name (name representing part of a register).

The displayed category and register names are as follows. (The number of the "+" marks at the beginning of each register name denotes the depth of the hierarchical level of displayed registers.)

Table A.2

[General Registers] Category and Register Names [RX]

Register name (alias)

Bit width

Register name (alias)

Bit width

+ R0

32

+ R8

32

+ R1

32

+ R9

32

+ R2

32

+ R10

32

+ R3

32

+ R11

32

+ R4

32

+ R12

32

+ R5

32

+ R13

32

+ R6

32

+ R14

32

+ R7

32

+ R15

32

Table A.3

[Double-Precision Floating-Point Data Registers] Category and Register Names [RX]Note 5

Register name (alias)

Bit width

Register name (alias)

Bit width

+ DR0

64

+ DR8

64

+ DR1

64

+ DR9

64

+ DR2

64

+ DR10

64

+ DR3

64

+ DR11

64

+ DR4

64

+ DR12

64

+ DR5

64

+ DR13

64

+ DR6

64

+ DR14

64

+ DR7

64

+ DR15

64

Table A.4

[Control Registers] Category and Register Names [RX]

Register name (alias)

Bit width

Register name (alias)

Bit width

Register name (alias)

Bit width

+ ISP

32

+ FPSWNote 2

32

+ ACCNote 3

64

+ USP

32

++ FS

1

+ ACC0Note 4

72

+ INTB

32

++ FX

1

+ ACC1Note 4

72

+ PC

32

++ FU

1

+ EXTBNote 4

32

+ PSW

32

++ FZ

1

+ DPSWNote 5

32

++ IPL

4Note 1

++ FO

1

+ DCMRNote 5

32

++ PM

1

++ FV

1

+ DECNTNote 5

32

++ U

1

++ EX

1

+ DEPCNote 5

32

++ I

1

++ EU

1

 

++ O

1

++ EZ

1

++ S

1

++ EO

1

++ Z

1

++ EV

1

++ C

1

++ DN

1

+ BPC

32

++ CE

1

+ BPSW

32

++ CX

1

+ FINTV

32

++ CU

1

 

++ CZ

1

++ CO

1

++ CY

1

++ RM

2

 

Note 1.

The bit width is 3 bits for the RX610 Group.

Note 2.

FPSW register is not supported by the microcontrollers without the FPU.

Note 3.

The RX71M, RX66x, RX65x, RX64M, RX671, RX24x, RX23x, RX72T, RX72M, and RX72N groups do not support the ACC register.

Note 4.

Only the RX71M, RX66x, RX65x, RX64M, RX671, RX24x, RX23x, RX72T, RX72M, and RX72N groups support the ACC0, ACC1, and EXTB registers.

Note 5.

These registers are not supported in microcontrollers that do not incorporate a double-precision floating-point coprocessor.

 

This area has the following features.

(a)

Registration of watch-expressions

CPU registers or categories can be registered as watch-expressions in the Watch panel.

For details on how to do it, see "2.11.6.1 Registering watch-expressions."

Remark 1.

If watch-expressions are registered for a category as the subject of registration, all CPU registers belonging to the category are registered as watch-expressions.

Remark 2.

The registered watch-expressions will have scope specification automatically added.

Caution

[RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups]
When the ACC0 or ACC1 register is registered as a watch-expression in the Watch panel and [Float] or [Double] is selected as the value display form, the actual display is the same as when [Hexadecimal] is selected.

(2)

[Value] area

This area displays the value of each CPU register and changes register values.

The desired notation (numerical representation) can be selected by clicking the appropriate toolbar button or by selecting from a context menu. Also, it is possible to select a display form that always adds hexadecimal equivalents to the ordinary display.

The meaning of marks displayed as CPU register values and their colors are as follows. (The colors in which text and backgrounds are displayed depend on how the [General - Font and Color] category of the Option dialog box is set.)

Example display (default)

Description

 

Text color

Blue

Values of CPU registers which have had their values changed by the user (Written into the target memory by hitting the [Enter] key)

Background color

Standard color

 

Text color

Sienna

Values of CPU registers whose values have changed as a result of program execution

Highlighting is reset by reexecuting the program.

Background color

LightYellow

 

This area has the following features:

(a)

Alternation of CPU register values

To change the value of a CPU register value, select the CPU register value you want to change and click it again, and then enter a new value directly from the keyboard. (Pressing the [Esc] key cancels the editing mode.)

When you've finished editing the value of a CPU register, press the [Enter] key or move the focus to other than the edit area. The value you've changed is written into the register of the debug tool.

(b)

Saving of CPU register values

By choosing [Save CPU Register Data As…] from the [File] menu, it is possible to open the Save As dialog box and then save the entire content of this panel to a text file (*.txt) or CSV file (*.csv).

For details on how to save the CPU register values, see "2.11.2.3 Saving the displayed CPU register contents."

(c)

Zoom in or out on a view

To zoom in and out of the CPU Register panel view, change the zoom ratio by using the drop-down list on the toolbar of the Main window while the focus is placed in the CPU Register panel.

You can also change the zoom ratio by using the [Ctrl] key + mouse-wheel combination.

-

Using the [Ctrl] key + mouse-wheel forward will zoom into the view, making the contents larger and easier to see (max. 300%).

-

Using the [Ctrl] key + mouse-wheel backward will zoom out of the view, making the contents smaller (min. 50%).

 

If the panel is closed after the zoom ratio is changed, the changed zoom ratio is retained (next time, the panel will open at the changed zoom ratio).

[Toolbar]

 

Acquires latest information from the debug tool to update the display.

However, this is disabled during program execution.

Notation

Shows the following buttons for changing the form in which values are displayed.

 

AutoSelect

Displays the value of a selected item (including a low-level item) in predetermined notation (default).

Hexadecimal

Displays the value of a selected item (including a low-level item) in hexadecimal.

Signed Decimal

Displays the value of a selected item (including a low-level item) in signed decimal.

Unsigned Decimal

Displays the value of a selected item (including a low-level item) in unsigned decimal.

Octal

Displays the value of a selected item (including a low-level item) in octal.

Binary

Displays the value of a selected item (including a low-level item) in binary.

ASCII

Displays the character string of a selected item (including a low-level item) in ASCII code. If the subject to be displayed consists of 2 bytes or more, characters of 1 byte each are displayed in a row.

Float

Displays a selected item in Float.

Except for 4-byte data, however, they are displayed in predetermined notation.

Double

Displays a selected item in Double.

Except for 8-byte data, however, they are displayed in predetermined notation.

 

Adds a hexadecimal equivalent for the displayed value at the end of it, with the equivalent enclosed in parentheses "( )".

[[File] Menu (CPU Register Panel-Only Items)]

The [File] menu used exclusively for the CPU Register panel is as follows. (The other items are shared.)

However, all of these items are disabled during program execution.

Save CPU Register Data

Saves the content of this panel to a text file (*.txt) or CSV file (*.csv) that has been saved previously (see "(b) Saving of CPU register values").

If this item is selected for the first time after startup, the same operation as [Save CPU Register Data As…] would have been selected is performed.

Save CPU Register Data As…

Opens the Save As dialog box in order to save the content of this panel to a specified text file (*.txt) or CSV file (*.csv) (see "(b) Saving of CPU register values").

[[Edit] Menu (CPU Register Panel-Only Items)]

The [Edit] menu used exclusively for the CPU Register panel is as follows. (All other items are disabled.)

Cut

Cuts a selected range of character string and copies it to the clipboard.

However, this is enabled only when character strings are being edited.

Copy

When in editing mode, copies a selected character string to the clipboard.

If a line is selected, a register or category on the line is copied to the clipboard.

Note that a copied item can be pasted to the Watch panel.

Paste

Pastes a copied character string from the clipboard to the caret position.

However, this is enabled only when character strings are being edited.

Select All

Selects all items.

Find…

Opens the Find and Replace dialog box, with its [Find in Files] tab selected.

Replace…

Opens the Find and Replace dialog box, with its [Replace in Files] tab selected.

[Context menu]

Register to Watch1

Registers a selected register name or category to the Watch panel (Watch1).

Copy

When in editing mode, copies a selected character string to the clipboard.

If a line is selected, a register item or category on the line is copied to the clipboard.

Note that a copied item can be pasted to the Watch panel.

Notation

Shows the following cascaded menu to specify the form in which values are displayed.

 

AutoSelect

Displays the value of a selected item (including a low-level item) in predetermined notation (default).

Hexadecimal

Displays the value of a selected item (including a low-level item) in hexadecimal.

Signed Decimal

Displays the value of a selected item (including a low-level item) in signed decimal.

Unsigned Decimal

Displays the value of a selected item (including a low-level item) in unsigned decimal.

Octal

Displays the value of a selected item (including a low-level item) in octal.

Binary

Displays the value of a selected item (including a low-level item) in binary.

ASCII

Displays the character string of a selected item (including a low-level item) in ASCII code. If the subject to be displayed consists of 2 bytes or more, characters of 1 byte each are displayed in a row.

Float

Displays a selected item in Float.

Except for 4-byte data, however, they are displayed in predetermined notation.

Double

Displays a selected item in Double.

Except for 8-byte data, however, they are displayed in predetermined notation.

Include Hexadecimal Value

Adds a hexadecimal equivalent for the displayed value at the end of it, with the equivalent enclosed in parentheses "( )".

Caution

[RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups]
When [Float] or [Double] is selected for the ACC0 or ACC1 register, the value which is displayed is the same as when [Hexadecimal] is selected.