<?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>Classic/Legacy CodeWarrior中的主题 Re: XGate assembler IMM16 addressing mode not supported?</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133784#M673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;4.6 is available for download. It is not an update, it is a full release though.&lt;BR /&gt;And again, not sure about the status of this issue in there, I don't have it installed here.&lt;BR /&gt;&lt;BR /&gt;My use of the ORH was not meant to say it's in any respect better than LDH. Use LDH&lt;BR /&gt;:smileyhappy:, just as fine.&lt;BR /&gt;&lt;BR /&gt;In my point of view, I want to see in assembly what the code really does. In case I don't really care, I use C :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 19:23:10 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2007-05-17T19:23:10Z</dc:date>
    <item>
      <title>XGate assembler IMM16 addressing mode not supported?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133781#M670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing an application using XGate assembly, and I am trying to use the immediate 16 bit addressing mode IMM16 as outlined e.g. in section 8.8.1.6 of the 9S12XDP512 manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LDW R6,#0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't work in either assembler or inline: "Error A22005: Number or type of operands mismatch"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this unsupported or am I doing something wrong? (I am using CW4.5 for HC12 Build 6037)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 21:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133781#M670</guid>
      <dc:creator>Oliver</dc:creator>
      <dc:date>2007-05-15T21:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: XGate assembler IMM16 addressing mode not supported?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133782#M671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hmm. I'm not having a clean installation here, so I'm not sure if this was added to 4.6 already or if it came later (and has not been officially released therefore). Out of the release notes of the XGATE assembler&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; - Fixed: the inline assembler did not handle pseudo-instructions with 16-bit immediates (e.g. LDW RD, #IMM16)&lt;BR /&gt;&lt;BR /&gt;With your assembler, you can use the two single instruction LDW maps too directly (or even in a macro)&lt;BR /&gt;E.g.&lt;BR /&gt;&amp;nbsp;XREF ExternalLabel&lt;BR /&gt;&amp;nbsp;LDL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R6,#%XGATE_8(ExternalLabel)&lt;BR /&gt;&amp;nbsp;ORH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R6,#%XGATE_8_H(ExternalLabel)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, for me those pseudo-instructions are more traps than useful features.&lt;BR /&gt;I mean "LDW R6,#0" is an especially inefficient way to load 0 into R6, a "LDL R6,#0" is twice as efficient, and just using R0 instead of R6 is even better :smileyhappy:.&lt;BR /&gt;I like to see what is going on, and those pseudo-instructions just hide that.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 02:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133782#M671</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-05-16T02:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: XGate assembler IMM16 addressing mode not supported?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133783#M672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Daniel,&lt;BR /&gt;&lt;BR /&gt;thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Actually, I'm loading a 16-bit constant into the register, I just wanted to keep the example simple.&lt;BR /&gt;I'm using the LDL/LDH immediate instead of LDW now, but LDW would make the source&lt;BR /&gt;a little more readable. What is the advantage of using ORH instead of instead of LDH?&lt;BR /&gt;As far as I see the only difference is that the CCR is affected.&lt;BR /&gt;&lt;BR /&gt;I checked the updater and there was no update available. Is 4.6 available already, or do I have to order it?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Oliver&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 14:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133783#M672</guid>
      <dc:creator>Oliver</dc:creator>
      <dc:date>2007-05-16T14:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: XGate assembler IMM16 addressing mode not supported?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133784#M673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;4.6 is available for download. It is not an update, it is a full release though.&lt;BR /&gt;And again, not sure about the status of this issue in there, I don't have it installed here.&lt;BR /&gt;&lt;BR /&gt;My use of the ORH was not meant to say it's in any respect better than LDH. Use LDH&lt;BR /&gt;:smileyhappy:, just as fine.&lt;BR /&gt;&lt;BR /&gt;In my point of view, I want to see in assembly what the code really does. In case I don't really care, I use C :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 19:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/XGate-assembler-IMM16-addressing-mode-not-supported/m-p/133784#M673</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-05-17T19:23:10Z</dc:date>
    </item>
  </channel>
</rss>

