core/com.nokia.carbide.cpp.doc.user/html/concepts/arm_registers.htm
changeset 1817 4eae2726ff31
parent 1816 2a6a8cc0b9a1
child 1818 bb528d06abcd
equal deleted inserted replaced
1816:2a6a8cc0b9a1 1817:4eae2726ff31
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 <html>
       
     3 <head>
       
     4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
       
     5 <meta http-equiv="Content-Style-Type" content="text/css" />
       
     6 <meta name="LASTUPDATED" content="06/17/05 11:09:43" />
       
     7 <title>ARM Registers</title>
       
     8 <link rel="StyleSheet" href="../../book.css" type="text/css"/>
       
     9 </head>
       
    10 <body >
       
    11 <h2>ARM Registers</h2>
       
    12 <p>  Registers are the register contents of the central processing unit (CPU) of the targeted device. When debugging projects on a device, only the target device registers are visible, for example the 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.</p>
       
    13 <p>Three registers are best left for special uses. These are:</p>
       
    14 <ul>
       
    15   <li>R13 for stack operations</li>
       
    16   <li>R14 is the link register (it is used for storing return addresses in the construction of sub routines)</li>
       
    17   <li>R15 is the program counter (PC)</li>
       
    18 </ul>
       
    19 <p>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.</p>
       
    20 <p class="note"><b>NOTE</b> When opening the Registers view, the list of available registers will vary depending upon the target devices being debugged. </p>
       
    21 <p align="center"><img src="images/ARM_registers.PNG" width="648" height="276" /></p>
       
    22 <p align="left" class="figure">Figure 1 - ARM Registers </p>
       
    23 <h5>Related concepts <b></b></h5>
       
    24 <ul>
       
    25   <li><a href="registers.htm">Emulator  Registers </a></li>
       
    26 </ul>
       
    27 <h5>Related tasks</h5>
       
    28 <ul>
       
    29       <li><a href="../tasks/registers/mem_reg_open_wnd.htm">Opening Register View</a></li>
       
    30       <li><a href="../tasks/registers/mem_reg_changing.htm">Changing Register Values</a></li>
       
    31 </ul>
       
    32     <h5>Related references <b></b></h5>
       
    33 <ul>
       
    34   <li><a href="../reference/view_registers.htm">View  Registers</a></li>
       
    35 </ul>
       
    36 <div id="footer">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
       
    37 
       
    38 </body>
       
    39 </html>