<?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: syntax for IX1 addressing in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192227#M6919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For completeness, the assembler has&amp;nbsp; a syntax for specifing the size of the operand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
 3043   27   000004 F0                      SUB $0,X; 3044   28   000005 E0 00                   SUB &amp;lt;$0,X; 3045   29   000007 D0 0000                 SUB &amp;gt;$0,X;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this works with the assembler, not with the HLI in the compiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Especially for educationaly purposes, I would recommend to use an offset which requires the addressing mode and not just 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:44:35 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2020-10-29T09:44:35Z</dc:date>
    <item>
      <title>syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192223#M6915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the syntax (an example) for IX1 addressing mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX #$0&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; SUB $0,X&lt;/P&gt;&lt;P&gt;Which results&lt;/P&gt;&lt;P&gt;&amp;nbsp;1381&amp;nbsp;&amp;nbsp; 33&amp;nbsp;&amp;nbsp; 000000 45 0000&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; LDHX #$0&lt;BR /&gt;&amp;nbsp;1382&amp;nbsp;&amp;nbsp; 34&amp;nbsp;&amp;nbsp; 000003 F0&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUB $0,X&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is wrong. Opcode should be E0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 20:50:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192223#M6915</guid>
      <dc:creator>csosza</dc:creator>
      <dc:date>2009-06-20T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192224#M6916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the offset value is zero, this represents the special case of IX addressing mode, which is more efficient than IX1 addressing mode. So this is what the assembler uses. It means that the code requires one less byte, and one less execution cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the instructions &lt;FONT face="courier new,courier"&gt;SUB 0,X&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;SUB ,X&lt;/FONT&gt; are alternative forms of the same instruction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any particular reason that you would wish to force the use of IX1 mode?&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by bigmac on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-06-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:38 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2009 22:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192224#M6916</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-06-21T22:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192225#M6917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be an example in my demonstration (this would be a theoretical example).&lt;/P&gt;&lt;P&gt;Can I use IX1 addressing in CodeWarrior? I have the latest version.&lt;/P&gt;&lt;P&gt;(or is there any like using DB directives..?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 01:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192225#M6917</guid>
      <dc:creator>csosza</dc:creator>
      <dc:date>2009-06-22T01:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192226#M6918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its like Mac said. If you use an offset of zero the assembler will use the more efficient IX mode.&lt;/P&gt;&lt;P&gt;If you really want IX1 mode, or to demonstrate it then the offset would have to be non-zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 07:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192226#M6918</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-06-22T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192227#M6919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For completeness, the assembler has&amp;nbsp; a syntax for specifing the size of the operand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
 3043   27   000004 F0                      SUB $0,X; 3044   28   000005 E0 00                   SUB &amp;lt;$0,X; 3045   29   000007 D0 0000                 SUB &amp;gt;$0,X;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this works with the assembler, not with the HLI in the compiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Especially for educationaly purposes, I would recommend to use an offset which requires the addressing mode and not just 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192227#M6919</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T09:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for IX1 addressing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192228#M6920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks, I will use a non-zero address.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 06:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/syntax-for-IX1-addressing/m-p/192228#M6920</guid>
      <dc:creator>csosza</dc:creator>
      <dc:date>2009-06-23T06:37:25Z</dc:date>
    </item>
  </channel>
</rss>

