<?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>CodeWarrior for MCUのトピックRe: Bug in handling inline assembly in C Compiler</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161835#M4518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This notation is not supported by the inline assembler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any good reason you cannot use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;label: brclr bitnumber,ea,label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2009 20:38:07 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-03-16T20:38:07Z</dc:date>
    <item>
      <title>Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161834#M4517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Am I correct in thinking that the inline assembler has a problem with the '*' (current location) symbol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please compare the original code appearing in the left window and the disassembled code in the right-hand window. The two brclr instructions should be the same I think?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The assembler handles :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;label: brclr bitnumber,ea,label&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;correctly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but has problems with the value of '*' in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;brclr bitnumber,ea,*+0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone cast light on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Compiler V6.21&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Target MC9S08JM60&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 18:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161834#M4517</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-03-13T18:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161835#M4518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This notation is not supported by the inline assembler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any good reason you cannot use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;label: brclr bitnumber,ea,label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 20:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161835#M4518</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-16T20:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161836#M4519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear CrazyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the notation is not accepted then the compiler should generate errors not incorrect code!&amp;nbsp; It does generate correct code for other case e.g. bra *+0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;This really isn't an answer &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&amp;nbsp; What does the assembler think '*' means in this context?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the alternative (as shown in the original posting) but would still like an explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the compiler may be calculating the offset for the wrong HC08 variant but that's a guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by pgo on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-17&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:06 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by pgo on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-17&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:12 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 09:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161836#M4519</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-03-17T09:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161837#M4520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend you to submit a service request for that.&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;BR /&gt;&lt;BR /&gt;Make sure to attach a reproducible project and installed product information to the service request.&lt;BR /&gt;To generate the required information:&lt;BR /&gt;- Start CodeWarrior&lt;BR /&gt;- Open the project&lt;BR /&gt;- Select "Help" -&amp;gt; "Pack and Go" and follow instructions on the screen.&lt;BR /&gt;&lt;BR /&gt;Attach the generated .zip file to the SR.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 23:03:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161837#M4520</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-17T23:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161838#M4521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed some further inconsistencies on this issue -&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt; &lt;FONT face="courier new,courier"&gt;__asm bra *&lt;/FONT&gt; does cause an error message, whereas&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt; &lt;FONT face="courier new,courier"&gt;__asm bra *+0&lt;/FONT&gt; does not cause any message, and produces the correct result, as previously noted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not exhaustively tested, but I might presume that any of the conditional branch instructions would give the correct result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; __asm brset 0,PTA,*+3 // Set/clear CF&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;does produce the erroneous assembly result &lt;FONT face="courier new,courier"&gt;brset 0,0x00,*+4,&lt;/FONT&gt; so is consistent with the previous observation.&amp;nbsp; Another relative branch instruction CBEQ produces a similar erroneous result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; __asm jmp *+6&lt;/FONT&gt; produces the erroneous assembly result jmp 0x06, again with no warning or error message.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the debugger extensively uses this notation within its assembly window, it does seem somewhat inconsistent to say that the notation is not supported within HLI code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 02:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161838#M4521</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-03-20T02:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in handling inline assembly in C Compiler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161839#M4522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the above bugs have been corrected in the latest version of the HCS08 Compiler (Fixed Bug MTWX31284).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 14:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-handling-inline-assembly-in-C-Compiler/m-p/161839#M4522</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-05-16T14:30:52Z</dc:date>
    </item>
  </channel>
</rss>

