<?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 Re: RTS returns to wrong place in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174992#M5604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;other things to check too&lt;BR /&gt;- stack is aligned, all the bytes added in the function have been removed before the RTS&lt;BR /&gt;- nothing in the function overwrites the return address&lt;BR /&gt;- the caller is using a JSR/BSR (and not CALL, for example)&lt;BR /&gt;- the stack is in RAM (as kef noted)&lt;BR /&gt;- the stack is allocated large enough.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Dec 2007 19:41:15 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2007-12-23T19:41:15Z</dc:date>
    <item>
      <title>RTS returns to wrong place</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174990#M5602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&amp;nbsp; I'm a newbie to assembler.&amp;nbsp; I've been tracing through my code trying to discover what is happening, and I've found that my RTS is returning to the wrong place.&amp;nbsp; Can anybody shed any light on a situation like this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 15:37:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174990#M5602</guid>
      <dc:creator>Vickyg</dc:creator>
      <dc:date>2007-12-23T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: RTS returns to wrong place</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174991#M5603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Is stack pointer (SP)&amp;nbsp;pointing to RAM?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 17:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174991#M5603</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2007-12-23T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: RTS returns to wrong place</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174992#M5604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;other things to check too&lt;BR /&gt;- stack is aligned, all the bytes added in the function have been removed before the RTS&lt;BR /&gt;- nothing in the function overwrites the return address&lt;BR /&gt;- the caller is using a JSR/BSR (and not CALL, for example)&lt;BR /&gt;- the stack is in RAM (as kef noted)&lt;BR /&gt;- the stack is allocated large enough.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 19:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174992#M5604</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-12-23T19:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTS returns to wrong place</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174993#M5605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you both for your time and effort.&amp;nbsp; Just knowing that there were people out there on my side (me against the chip) was what I needed to get past my problem.&amp;nbsp; It turned out that I had changed chip sets and had missed that the add hx to a routines had moved and I was jumping in one point past where the stack pointer was incremented.&amp;nbsp; Stupid error on my part, but as a complete novice I was sure it was something like an overrun of the stack bounderies.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks, your being there was very important to me.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 21:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/RTS-returns-to-wrong-place/m-p/174993#M5605</guid>
      <dc:creator>Vickyg</dc:creator>
      <dc:date>2007-12-23T21:17:00Z</dc:date>
    </item>
  </channel>
</rss>

