<?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: Cutting Constant warning Codewarrior IDE 5.7, programming 9S12XDP512 in assembly in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138247#M2155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That warning only occurs in the absolute assemble mode.&lt;BR /&gt;The code is correct, so I would think in this case the assembler should be adapted. Anyway&lt;BR /&gt;you can use a PC relative JMP instead and do the cutting explicitly, like this:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JMP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$FFFF &amp;amp; (CHANNEL_PATH - Next),PC]&lt;BR /&gt;Next:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That generates the same code but it avoids the warning.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 17:01:19 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2007-06-26T17:01:19Z</dc:date>
    <item>
      <title>Cutting Constant warning Codewarrior IDE 5.7, programming 9S12XDP512 in assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138245#M2153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The assembler returns this warning, although it assembles the code properly and the code works fine. &amp;nbsp;Is there a different syntax to use on my assembler line or other solution&amp;nbsp;to eliminate this warning&amp;nbsp;? I am new to Codewarrior, so any suggestion is welcome. The warning looks like this;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Warning : A1415:&amp;nbsp; Cutting constant:&amp;nbsp; Value&amp;nbsp; -47424 is not in range [-32768...65535]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The tip in help is to use a larger field? How do I do this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The line of code that causes this warning, this is from the list file;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 2;"&gt;a00CC10 05FB 46C0&amp;nbsp;&amp;nbsp; &amp;nbsp;JMP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CHANNEL_PATH,PCR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From the list file, I have defined CHANNEL_PATH in ram, it is 16 bit,&amp;nbsp;located at $12D4&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;0000 12D4&amp;nbsp;&amp;nbsp; CHANNEL_PATH&amp;nbsp;EQU&amp;nbsp;724 + RAMSTART&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 02:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138245#M2153</guid>
      <dc:creator>zdriver</dc:creator>
      <dc:date>2007-06-26T02:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting Constant warning Codewarrior IDE 5.7, programming 9S12XDP512 in assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138246#M2154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am unable to reproduce the issue here on CodeWarrior for HCS12 V4.6.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You need to either submit a service request for that or send me some source file reproducing the issue.&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 13:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138246#M2154</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-06-26T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting Constant warning Codewarrior IDE 5.7, programming 9S12XDP512 in assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138247#M2155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That warning only occurs in the absolute assemble mode.&lt;BR /&gt;The code is correct, so I would think in this case the assembler should be adapted. Anyway&lt;BR /&gt;you can use a PC relative JMP instead and do the cutting explicitly, like this:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JMP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$FFFF &amp;amp; (CHANNEL_PATH - Next),PC]&lt;BR /&gt;Next:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That generates the same code but it avoids the warning.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 17:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138247#M2155</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-06-26T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting Constant warning Codewarrior IDE 5.7, programming 9S12XDP512 in assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138248#M2156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;That fixed the warning, thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 23:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Cutting-Constant-warning-Codewarrior-IDE-5-7-programming/m-p/138248#M2156</guid>
      <dc:creator>zdriver</dc:creator>
      <dc:date>2007-07-06T23:40:56Z</dc:date>
    </item>
  </channel>
</rss>

