core/com.nokia.carbide.cpp.doc.user/html/concepts/registers.htm
changeset 2087 617a89f9dffc
parent 2009 b622387629d6
child 2131 ff0156b93599
equal deleted inserted replaced
2086:218e49ed806f 2087:617a89f9dffc
    14     <li><a href="#general">General registers</a></li>
    14     <li><a href="#general">General registers</a></li>
    15     <li><a href="#arm">ARM registers</a></li>
    15     <li><a href="#arm">ARM registers</a></li>
    16 </ul>
    16 </ul>
    17 <h2><a name="general"></a>General registers</h2>
    17 <h2><a name="general"></a>General registers</h2>
    18 <p>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 <a href="../reference/view_registers.htm">Registers</a> view. When debugging projects on a device, only the target device registers are visible. </p>
    18 <p>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 <a href="../reference/view_registers.htm">Registers</a> view. When debugging projects on a device, only the target device registers are visible. </p>
    19 <p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with Application CODA, you cannot change the LR and SP registers.</p>
    19 <p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with Symbian OS Device (Install SIS), you cannot change the LR and SP registers.</p>
    20 <p align="center"><img src="images/view_registers.png" width="463" height="260"></p>
    20 <p align="center"><img src="images/view_registers.png" width="463" height="260"></p>
    21 <p class="figure">Figure 1. Registers view with possible register types</p>
    21 <p class="figure">Figure 1. Registers view with possible register types</p>
    22 <p>The types of registers can include:</p>
    22 <p>The types of registers can include:</p>
    23 <ul>
    23 <ul>
    24   <li><b>general</b> &#8212; the register contents of the central processing unit (CPU) of the host computer</li>
    24   <li><b>general</b> &#8212; the register contents of the central processing unit (CPU) of the host computer</li>
    34 <ul>
    34 <ul>
    35     <li>R13 for stack operations</li>
    35     <li>R13 for stack operations</li>
    36     <li>R14 is the link register (it is used for storing return addresses in the construction of sub routines)</li>
    36     <li>R14 is the link register (it is used for storing return addresses in the construction of sub routines)</li>
    37     <li>R15 is the program counter (PC)</li>
    37     <li>R15 is the program counter (PC)</li>
    38 </ul>
    38 </ul>
    39 <p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with Application CODA, you cannot change the LR, SP, and CPSR registers.</p>
    39 <p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with CODA (Carbide On-Device Debug Agent), you cannot change the LR, SP, and CPSR registers.</p>
    40 <p align="center"><img src="images/ARM_registers.PNG" alt="" width="648" height="276" /></p>
    40 <p align="center"><img src="images/ARM_registers.PNG" alt="" width="648" height="276" /></p>
    41 <p align="left" class="figure">Figure 2 - ARM Registers </p>
    41 <p align="left" class="figure">Figure 2 - ARM Registers </p>
    42 <h5>Other  references <b></b></h5>
    42 <h5>Other  references <b></b></h5>
    43     <ul>
    43     <ul>
    44   <li><a href="../reference/view_registers.htm">Registers</a> view</li>
    44   <li><a href="../reference/view_registers.htm">Registers</a> view</li>