<?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: how to use WHILE directive in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130330#M443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Where are you trying to use the WHILE construct?&lt;BR /&gt;Are you trying to use that in a C source file, in an assembler source file, in a debugger command file?&lt;/P&gt;&lt;P&gt;Which processor are you targeting (HC08, HC12, Coldfire, ....)&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2006 19:00:31 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-03-28T19:00:31Z</dc:date>
    <item>
      <title>how to use WHILE directive</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130329#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;when I use WHILE(see below), the&amp;nbsp;compiler always reports error.&lt;/DIV&gt;&lt;DIV&gt;I can't find an example program.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;WHILE r1 &amp;lt;EQ&amp;gt; #0&amp;nbsp;&lt;BR /&gt;.&lt;/DIV&gt;&lt;DIV&gt;.&lt;BR /&gt;ENDW&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;or&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;WHILE r1&amp;nbsp;== #0&amp;nbsp;&lt;BR /&gt;.&lt;/DIV&gt;&lt;DIV&gt;.&lt;BR /&gt;ENDW&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;or&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;WHILE r1&amp;nbsp;&lt;BR /&gt;.&lt;/DIV&gt;&lt;DIV&gt;.&lt;BR /&gt;ENDW&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 10:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130329#M442</guid>
      <dc:creator>jjl3</dc:creator>
      <dc:date>2006-03-28T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to use WHILE directive</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130330#M443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Where are you trying to use the WHILE construct?&lt;BR /&gt;Are you trying to use that in a C source file, in an assembler source file, in a debugger command file?&lt;/P&gt;&lt;P&gt;Which processor are you targeting (HC08, HC12, Coldfire, ....)&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 19:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130330#M443</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-03-28T19:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to use WHILE directive</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130331#M444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I use it in assembler source&amp;nbsp;file, target is dsp56f801a60.&lt;/DIV&gt;&lt;DIV&gt;for example, I want to know how implement below statements in assembler language.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;while(abc &amp;gt; 1)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:16:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130331#M444</guid>
      <dc:creator>jjl3</dc:creator>
      <dc:date>2006-03-29T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to use WHILE directive</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130332#M445</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;&amp;nbsp;I have created a sample project for DSP56F801_60MHz an I am able&lt;BR /&gt;&amp;nbsp;to assemble an assembly source file containing following code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;.WHILE x&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;r1)+ &amp;lt;EQ&amp;gt; #0 DO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nop&lt;BR /&gt;&amp;nbsp;.ENDW&lt;BR /&gt;&amp;nbsp;This generates following code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;move&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;R1)+,A&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;movei&amp;nbsp;&amp;nbsp;&amp;nbsp; #0,X0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cmp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X0,A&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;bne&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *+3&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 0x000006&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;nop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;bra&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *-5&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 0x000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;rts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Which from my prospective looks good.&lt;/DIV&gt;&lt;DIV&gt;Can you please check which Linker you have specified in the Target Settings Panel?&lt;/DIV&gt;&lt;DIV&gt;Did you specify M56800 Linker there?&lt;/DIV&gt;&lt;DIV&gt;This is the linker you should use for DSP56801.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know that structured programming is not supported for DSP56800E Linker.&lt;/DIV&gt;&lt;DIV&gt;i.e. you cannot use structured assembler for Hawk II cores.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also make sure you are not using the .WHILE directive in inline assembler. It is supported in macro assembler only.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&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>Wed, 29 Mar 2006 20:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130332#M445</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-03-29T20:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to use WHILE directive</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130333#M446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for your support!&lt;/DIV&gt;&lt;DIV&gt;I used it in inline assembler.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 08:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/how-to-use-WHILE-directive/m-p/130333#M446</guid>
      <dc:creator>jjl3</dc:creator>
      <dc:date>2006-03-30T08:42:18Z</dc:date>
    </item>
  </channel>
</rss>

