## Registers

Use the Registers view to view the general and specific registers central processing unit (CPU) of the host computer. The exact listing of these registers depends on the host CPU and current build target.

- General registers
- ARM registers

## General registers

Registers are the register contents of the central processing unit (CPU) of the host computer or the targeted device. When debugging projects using the emulator, only the host computer x86 registers are visible in the Registers view. When debugging projects on a device, only the target device registers are visible.

In most cases, the contents of all the registers can be modified. However, when debugging applications on a target device with Application TRK, you cannot change the LR and SP registers.

Figure 1. Registers view with possible register types

The types of registers can include:

- general — the register contents of the central processing unit (CPU) of the host computer
- FPU — register contents of the floating-point unit (FPU) of the host computer
- MMX — 64-bit MultiMedia eXtension (MMX) registers
- SSE — 128-bit Streaming SIMD Extension registers
- host-specific—additional register contents for registers specific to the host (for example ARM registers)

NOTE When opening the Registers view, the list of available registers will vary depending upon the target devices being debugged.

## ARM registers

The ARM microprocessor has 16 general-purpose registers. THUMB has eight general-purpose registers, R0-R7, and access to the high registers, R8-R15. Note that registers R0 through R3 hold the first four words of incoming arguments. The microprocessor constructs remaining arguments in the calling function's argument build area, which does not provide space into which R0 through R3 can be spilled.

Three registers are best left for special uses. These are:

- R13 for stack operations
- R14 is the link register (it is used for storing return addresses in the construction of sub routines)
- R15 is the program counter (PC)

In most cases, the contents of all the registers can be modified. However, when debugging applications on a target device with Application TRK, you cannot change the LR, SP, and CPSR registers.

Figure 2 - ARM Registers

##### Other references

- Registers view
- Opening a Registers View
- Changing Register Values
- ARM Registers