<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CodeWarrior 8- &amp; 16-bit tools: Stack Pointer Register Initialization in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-8-16-bit-tools-Stack-Pointer-Register-Initialization/m-p/124946#M137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Posted: Jul 20, 2004 - 09:24 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to learn how to initialize the SP register in assembly code. The linker parameter file can define STACKTOP but I can't see how to pass that to an LDS #LABEL in the assembler code. Have been looking for the C startup code INIT_SP_FROM_STARTUP_DESC(); to see how it is done there but can't find it.&lt;/P&gt;&lt;P&gt;Can anybody tell me where to find that code?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posted: Jul 20, 2004 - 04:47 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Look at file hidef.h in installation \lib\HC08c\include directory. the macro INIT_SP_FROM_STARTUP_DESC() is defined there.&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;_________________&lt;BR /&gt;Ron Liechty&lt;BR /&gt;Ombudsman for Metrowerks&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jan 2006 02:08:48 GMT</pubDate>
    <dc:creator>marc_paquette</dc:creator>
    <dc:date>2006-01-28T02:08:48Z</dc:date>
    <item>
      <title>CodeWarrior 8- &amp; 16-bit tools: Stack Pointer Register Initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-8-16-bit-tools-Stack-Pointer-Register-Initialization/m-p/124946#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Posted: Jul 20, 2004 - 09:24 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to learn how to initialize the SP register in assembly code. The linker parameter file can define STACKTOP but I can't see how to pass that to an LDS #LABEL in the assembler code. Have been looking for the C startup code INIT_SP_FROM_STARTUP_DESC(); to see how it is done there but can't find it.&lt;/P&gt;&lt;P&gt;Can anybody tell me where to find that code?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posted: Jul 20, 2004 - 04:47 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Look at file hidef.h in installation \lib\HC08c\include directory. the macro INIT_SP_FROM_STARTUP_DESC() is defined there.&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;_________________&lt;BR /&gt;Ron Liechty&lt;BR /&gt;Ombudsman for Metrowerks&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 02:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-8-16-bit-tools-Stack-Pointer-Register-Initialization/m-p/124946#M137</guid>
      <dc:creator>marc_paquette</dc:creator>
      <dc:date>2006-01-28T02:08:48Z</dc:date>
    </item>
  </channel>
</rss>

